https://bugzilla.wikimedia.org/show_bug.cgi?id=30090

       Web browser: ---
             Bug #: 30090
           Summary: escaped newlines in properties
           Product: MediaWiki extensions
           Version: any
          Platform: PC
        OS/Version: Windows Server 2003
            Status: NEW
          Severity: major
          Priority: Unprioritized
         Component: Semantic MediaWiki
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    Classification: Unclassified


[SMW 1.5.6, MW 1.16.1, Semantic Forms 2.0.9]

I have a text property, with some lengthy values (multiple paragraphs).  They
are formatted fine on the page with the property, but when that property is
queried in another page, the results have every newline escaped as \012. Let's
say I have a template definition that includes:
[[description::{{{Description|}}}]]

So if my page includes:
Description=text text text text text text text text text text 

text text text text text text text text text text text text 

text text text text text text text text text text text text 

it renders on the page as multiple paragraphs, but if Description is returned
in an inline query, it looks like:

text text text text text text text text text text\012\012text text text text
text text text text text text text text\012\012text text text text text text
text text text text text text 

Other wikitext works okay, unless it is dependent on newlines (e.g., bullets).
It happens in any result format type.  

The properties browser also shows it escaped.  It looks like this escaping
happens when the template values are converted into properties; the template
re-renders it fine, but queries don't.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to