This is an automated email from the ASF dual-hosted git repository.

kwin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-doxia-site.git

commit fd5b1f232629bf5e3dcbe0960da8faad9dfe1ea4
Author: Konrad Windszus <k...@apache.org>
AuthorDate: Thu Dec 12 14:36:04 2024 +0100

    Workaround for DOXIA-764
    
    Remove newlines directly following <source> tags
---
 content/fml/faq.fml       | 18 ++++++------------
 content/xdoc/overview.xml |  9 +++------
 2 files changed, 9 insertions(+), 18 deletions(-)

diff --git a/content/fml/faq.fml b/content/fml/faq.fml
index 8904459..1dfba22 100644
--- a/content/fml/faq.fml
+++ b/content/fml/faq.fml
@@ -99,33 +99,28 @@ under the License.
         <p>
           Your favorite IDE probably supports XSD schema's for Xdoc and FML 
files. You need to
           specify the following:
-        <source>
-&lt;document xmlns="http://maven.apache.org/XDOC/2.0";
+        <source>&lt;document xmlns="http://maven.apache.org/XDOC/2.0";
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
   xsi:schemaLocation="http://maven.apache.org/XDOC/2.0 
http://maven.apache.org/xsd/xdoc-2.0.xsd"&gt;
   ...
 &lt;/document&gt;</source>
-        <source>
-&lt;faqs xmlns="http://maven.apache.org/FML/1.0.1";
+        <source>&lt;faqs xmlns="http://maven.apache.org/FML/1.0.1";
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
   xsi:schemaLocation="http://maven.apache.org/FML/1.0.1 
http://maven.apache.org/xsd/fml-1.0.1.xsd"&gt;
   ...
 &lt;/faqs&gt;</source>
-          <source>
-&lt;book xmlns="http://maven.apache.org/BOOK/1.0.0";
+          <source>&lt;book xmlns="http://maven.apache.org/BOOK/1.0.0";
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
   xsi:schemaLocation="http://maven.apache.org/BOOK/1.0.0 
http://maven.apache.org/xsd/book-1.0.0.xsd";>
   ...
 &lt;/book&gt;</source>
-          <source>
-&lt;document xmlns="http://maven.apache.org/DOCUMENT/1.0.1";
+          <source>&lt;document xmlns="http://maven.apache.org/DOCUMENT/1.0.1";
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
   xsi:schemaLocation="http://maven.apache.org/DOCUMENT/1.0.1 
http://maven.apache.org/xsd/document-1.0.1.xsd";
   outputName="..."&gt;
   ...
 &lt;/document&gt;</source>
-          <source>
-&lt;project xmlns="http://maven.apache.org/DECORATION/1.0.0";
+          <source>&lt;project xmlns="http://maven.apache.org/DECORATION/1.0.0";
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
   xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.0 
http://maven.apache.org/xsd/decoration-1.0.0.xsd"&gt;
   ...
@@ -145,8 +140,7 @@ under the License.
         </p>
         <p>
           For instance, you could add the following in your Xdoc XML files to 
be similar to XHTML 1.0 Transitional dtd:
-        <source>
-&lt;!DOCTYPE document [
+        <source>&lt;!DOCTYPE document [
   &lt;!-- These are the entity sets for ISO Latin 1 characters for the XHTML 
--&gt;
   &lt;!ENTITY % HTMLlat1 PUBLIC "-//W3C//ENTITIES Latin 1 for XHTML//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent"&gt;
   %HTMLlat1;
diff --git a/content/xdoc/overview.xml b/content/xdoc/overview.xml
index b3a0416..71c494e 100644
--- a/content/xdoc/overview.xml
+++ b/content/xdoc/overview.xml
@@ -77,15 +77,13 @@ under the License.
         <p>
           For instance, you could do things like:
         </p>
-        <source>
-sink.paragraph();
+        <source>sink.paragraph();
 sink.text( &quot;my text&quot; );
 sink.paragraph_(); </source>
         <p>
           similar to this HTML markup:
         </p>
-        <source>
-&lt;p&gt;my text&lt;/p&gt;</source>
+        <source>&lt;p&gt;my text&lt;/p&gt;</source>
         <p>To find out more about the Sink API, you could read the Javadoc
           <a class="externalLink"
             
href="http://maven.apache.org/doxia/doxia/doxia-sink-api/apidocs/org/apache/maven/doxia/sink/Sink.html";>here</a>.
@@ -97,8 +95,7 @@ sink.paragraph_(); </source>
           The <i>Core</i> is the API to parse a source and populate it in a 
<i>Sink</i>
           object. The <i>Parser</i> interface contains only one method:
         </p>
-        <source>
-void parse( Reader source, Sink sink )
+        <source>void parse( Reader source, Sink sink )
     throws ParseException; </source>
         <p>
           The <i>ParseException</i> class has the responsibility to catch all 
parsing

Reply via email to