You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@incubator.apache.org by bd...@apache.org on 2019/05/20 11:06:50 UTC

[incubator] branch master updated: Explain what the script does

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

bdelacretaz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator.git


The following commit(s) were added to refs/heads/master by this push:
     new 7d6a737  Explain what the script does
7d6a737 is described below

commit 7d6a737e9d146ec647c562ff21598a2535396459
Author: Bertrand Delacretaz <bd...@apache.org>
AuthorDate: Mon May 20 13:06:42 2019 +0200

    Explain what the script does
---
 preprocess_content.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/preprocess_content.sh b/preprocess_content.sh
index f691f25..29965aa 100755
--- a/preprocess_content.sh
+++ b/preprocess_content.sh
@@ -1,4 +1,7 @@
 #!/bin/bash
  
 echo "Preprocessing the Board report content" 
+
+# Use fold to wrap lines within 76 chars
+# And sed to escape HTML characters
 fold -s -w 76 < report.txt | sed 's/&/\&amp;/g; s/</\&lt;/g; s/>/\&gt;/g; s/"/\&quot;/g; s/'"'"'/\&#39;/g' > report-processed.txt
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@incubator.apache.org
For additional commands, e-mail: cvs-help@incubator.apache.org