[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#275755: marked as done (python2.3-xmldiff: Whitespace handling incorrect)



Your message dated Mon, 2 Sep 2019 23:26:41 -0400
with message-id <CAB4XWXxVwipj_O27ADQOsQKHR5NrQm7irX+pWfU_eBCfYQrnPw@mail.gmail.com>
and subject line Removal of xupdate from xmldiff
has caused the Debian Bug report #275755,
regarding python2.3-xmldiff: Whitespace handling incorrect
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
275755: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=275755
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: python2.3-xmldiff
Version: 0.6.4-5
Severity: important

For xupdate output, xmldiff apparently assumes that XML is not
whitespace significant. This is not true. It may be true in some
schemas, but unless you have schema information stating where whitespace
is not significant you should try not to add additional whitespace.

Example:
[...]
  <xupdate:insert-after
  select="/gconfschemafile[1]/schemalist[1]/schema[148]" >
  <xupdate:element name="schema">
    <key>
/schemas/apps/galeon/Browsing/Bookmarks/Editor/split_view
    </key>
[...]

When processed by an xupdate processor these additional newlines and
whitespace will be added to the destination document.

Think of an HTML file. Whitespace there is usually not significant.
With a couple of exceptions, for example the PRE tag.

In absence of a DTD telling you otherwise (or a user configuration flag)
whitespace must be treated as significant and reproduced correctly.

Having an "ignore whitespace" switch for doing the diff is a first step;
still it should not add new whitespace to a document like shown above.

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.9-rc3+swsusp
Locale: LANG=de_DE.UTF-8@euro, LC_CTYPE=de_DE.UTF-8@euro

Versions of packages python2.3-xmldiff depends on:
ii  python2.3                     2.3.4-13   An interactive high-level object-o
ii  python2.3-xml                 0.8.3-5    XML tools for Python (2.3.x)
ii  xmldiff-sgml                  0.6.4-5    xmldiff's DTDS and catalogs.

-- no debconf information


--- End Message ---
--- Begin Message ---
xupdate has been removed from xmldiff 2.3, recently uploaded to
Debian; closing this report

-- 
Sandro "morph" Tosi
My website: http://sandrotosi.me/
Me at Debian: http://wiki.debian.org/SandroTosi
G+: https://plus.google.com/u/0/+SandroTosi

--- End Message ---

Reply to: