]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/xml/writer/writer-docs.factor
factor: trim using lists
[factor.git] / basis / xml / writer / writer-docs.factor
index 0702e5be4ea8a3c4e174ff3ca3edb373737506f3..f15fdb1a6fae41f5bc9445f3a93ff75a43249900 100644 (file)
@@ -1,6 +1,6 @@
 ! Copyright (C) 2005, 2009 Daniel Ehrenberg
 ! See http://factorcode.org/license.txt for BSD license.
-USING: help.syntax help.markup io strings xml.data multiline ;
+USING: help.markup help.syntax io strings xml.data ;
 IN: xml.writer
 
 ABOUT: "xml.writer"
@@ -47,19 +47,20 @@ HELP: pprint-xml
 
 HELP: indenter
 { $var-description "Contains the string which is used for indenting in the XML prettyprinter. For example, to print an XML document using " { $snippet "%%%%" } " for indentation, you can use the following:" }
-{ $example """USING: xml.syntax xml.writer namespaces ;
-[XML <foo>bar</foo> XML] "%%%%" indenter [ pprint-xml ] with-variable """ """
+{ $example "USING: xml.syntax xml.writer namespaces ;
+[XML <foo>bar</foo> XML] \"%%%%\" indenter [ pprint-xml ] with-variable " "
 <foo>
 %%%%bar
-</foo>""" } ;
+</foo>" } ;
 
 HELP: sensitive-tags
 { $var-description "Contains a sequence of " { $link name } "s where whitespace should be considered significant for prettyprinting purposes. The sequence can contain " { $link string } "s in place of names. For example, to preserve whitespace inside a " { $snippet "pre" } " tag:" }
-{ $example """USING: xml.syntax xml.writer namespaces ;
-[XML <html> <head>   <title> something</title></head><body><pre>bing
+{ $example "USING: xml.syntax xml.writer namespaces ;
+[XML <!DOCTYPE html> <html> <head> <title> something</title></head><body><pre>bing
 bang
-   bong</pre></body></html> XML] { "pre" } sensitive-tags [ pprint-xml ] with-variable"""
-"""
+   bong</pre></body></html> XML] { \"pre\" } sensitive-tags [ pprint-xml ] with-variable"
+"
+<!DOCTYPE html>
 <html>
   <head>
     <title>
@@ -71,4 +72,4 @@ bang
 bang
    bong</pre>
   </body>
-</html>""" } ;
+</html>" } ;