Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • L libxml2
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 78
    • Issues 78
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 6
    • Merge requests 6
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • libxml2
  • Issues
  • #16
Closed
Open
Issue created Aug 15, 2018 by 林博仁(Buo-ren, Lin)@buo-ren_Lin

xmllint failed to properly `--format` certain SVG image

Refer the attached SVG image for a sample, after formatting(--huge --format) notice that:

git-cola.svg

  1. At line 3, the metadata, rdf:RDF, cc:Work, dc:format, dc:type, defs, and sodipodi:nameview elements are not separated to individual lines.
  2. At last line (line 8), <g>, <path />, </g>, and </svg> elements are all on the same line.

It appears that the formatting is broken to a degree, which matches the result of http://xmlbeautifier.com/ but not https://codebeautify.org/xmlvalidator, which seems to use a different algorithm.

Additional Information

xmllint --version

xmllint: using libxml version 20903
   compiled with: Threads Tree Output Push Reader Patterns Writer SAXv1 FTP HTTP DTDValid HTML Legacy C14N Catalog XPath XPointer XInclude Iconv ISO8859X Unicode Regexps Automata Expr Schemas Schematron Modules Debug Zlib Lzma

libxml

2.9.3 from Ubuntu 16.04 (pkg version: 2.9.3+dfsg1-1ubuntu0.5)

Edited Aug 15, 2018 by 林博仁(Buo-ren, Lin)
Assignee
Assign to
Time tracking