https://bugzilla.wikimedia.org/show_bug.cgi?id=21945
Summary: Missing chomp control for YAML literals Product: MediaWiki Version: unspecified Platform: All URL: http://de.wikipedia.org/w/api.php?action=query&meta=site info&format=yamlfm OS/Version: All Status: NEW Severity: normal Priority: Normal Component: API AssignedTo: roan.katt...@gmail.com ReportedBy: bjo...@hoehrmann.de CC: bryan.tongm...@gmail.com, vasi...@gmail.com, soxre...@gmail.com The API output for the cited URL goes like this: query: general: mainpage: | Wikipedia:Hauptseite base: | http://de.wikipedia.org/wiki/Wikipedia:Hauptseite sitename: Wikipedia generator: MediaWiki 1.16alpha-wmf phpversion: 5.2.4-2ubuntu5.7wm1 phpsapi: apache2handler dbtype: mysql dbversion: 5.1.33-log rev: 59858 case: first-letter rights: > Creative Commons Attribution-Share Alike 3.0 Unported lang: de For the "base" and "rights" properties (and others like it) this causes the trailing new line to be included in the property value (so you get "http://de.wikipedia.org/wiki/Wikipedia:Hauptseite\n"). This should instead use the "strip" chomp control ("-"), like so: query: general: mainpage: |- Wikipedia:Hauptseite base: |- http://de.wikipedia.org/wiki/Wikipedia:Hauptseite sitename: Wikipedia generator: MediaWiki 1.16alpha-wmf phpversion: 5.2.4-2ubuntu5.7wm1 phpsapi: apache2handler dbtype: mysql dbversion: 5.1.33-log rev: 59858 case: first-letter rights: >- Creative Commons Attribution-Share Alike 3.0 Unported lang: de See http://yaml.org/spec/1.0/#c-chomp-control for details. -- 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 Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l