Edgewall Software
Modify

Opened 20 years ago

Closed 19 years ago

Last modified 19 years ago

#967 closed defect (fixed)

xml like patch not escaped properly

Reported by: johan@… Owned by: Jonas Borgström
Priority: normal Milestone: 0.9
Component: ticket system Version: 0.8
Severity: normal Keywords:
Cc: johan@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description

A patch like this:

Index: flumotion/component/producers/webcam/webcam.xml
===================================================================
--- flumotion/component/producers/webcam/webcam.xml     (revision 1164)
+++ flumotion/component/producers/webcam/webcam.xml     (working copy)
@@ -4,6 +4,7 @@
       <source location="flumotion.component.producers.webcam.webcam"/>
       <properties>
         <property name="feed" type="string" required="yes" multiple="yes"/>
+        <property name="device" type="string" required="yes"/>
         <property name="height" type="int"/>
         <property name="width" type="int"/>
         <property name="framerate" type="float"/>

is rendered like this:

<span class="code-string"><B>Index: flumotion/component/producers/webcam/webcam.xml
</span></B>
<span lass="code-string"><B>===================================================================
</span></B>
<B><span class="code-func">--- flumotion/component/producers/webcam/webcam.xml	(revision 1164)
</span></B>
<B><span class="code-keyword">+++ flumotion/component/producers/webcam/webcam.xml	(working copy)
</span></B>
<I><span class="code-comment">@@ -4,6 +4,7 @@
</span></I>
       <source location="flumotion.component.producers.webcam.webcam"/>
       <properties>
         <property name="feed" type="string" required="yes" multiple="yes"/>
<B><span class="code-keyword">+        &lt;property name=&quot;device&quot; type=&quot;string&quot; required=&quot;yes&quot;/&gt;

</span></B>         <property name="height" type="int"/>
         <property name="width" type="int"/>
         <property name="framerate" type="float"/>
</PRE></div>

Which makes all lines with < and > to be not rendered at all.

For an example. see this url: https://core.fluendo.com/trac/cgi-bin/trac.cgi/attachment/ticket/110/webcam-device-property.patch

Attachments (1)

xml-rendering.patch (649 bytes ) - added by anonymous 20 years ago.
testcase

Download all attachments as: .zip

Change History (4)

by anonymous, 20 years ago

Attachment: xml-rendering.patch added

testcase

comment:1 by Christopher Lenz, 20 years ago

This appears to be a problem with enscript.

comment:2 by Matthew Good, 19 years ago

Milestone: 0.9
Resolution: fixed
Status: newclosed

Since Trac now provides it's own mimeviewer to display diff files like the changeset diffs, this problem is fixed.

comment:3 by Matthew Good, 19 years ago

And actually it seems like the enscript formatting works too since the patch attached to this ticket displays properly without the newer diff viewer.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.