Skip to content

Commit

Permalink
Document sanitizing of text and new skipsanitize attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
mrook committed Apr 26, 2023
1 parent 21b1b2c commit bad7358
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions source/appendixes/coretasks/AppendTask.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@
<literal>${process.outputfile}</literal>. This is a real example from the build file used to generate this book!
</para>

<note>
<para>By default, whitespace is stripped from text that is appended to a file (matching the way the Concat task works in Ant).
This is because adding a nested text element may introduce additional (ignorable) whitespace. If you want to override this behavior,
set the <literal>skipsanitize</literal> attribute to <literal>true</literal>.</para>
</note>

<table>
<title>Attributes</title>
<tgroup cols="5">
Expand Down Expand Up @@ -135,6 +141,19 @@
<entry>n/a</entry>
<entry>No</entry>
</row>
<row>
<entry>
<literal>skipsanitize</literal>
</entry>
<entry>
<literal role="type">Boolean</literal>
</entry>
<entry>
Specifies whether to skip sanitizing text (i.e., stripping spaces and newlines).
</entry>
<entry>n/a</entry>
<entry>No</entry>
</row>
<row>
<entry>
<literal>file</literal>
Expand Down

0 comments on commit bad7358

Please sign in to comment.