From a59f7f697d40835a8eb0f179f066dac5c3b5955d Mon Sep 17 00:00:00 2001 From: Mathieu Arnold Date: Sat, 22 Jun 2019 11:34:20 +0000 Subject: [PATCH] Update UCL examples of short and multiline strings Submitted by: dbaio Differential Revision: https://reviews.freebsd.org/D20666 --- .../porters-handbook/pkg-files/chapter.xml | 63 +++++++++++-------- 1 file changed, 38 insertions(+), 25 deletions(-) diff --git a/en_US.ISO8859-1/books/porters-handbook/pkg-files/chapter.xml b/en_US.ISO8859-1/books/porters-handbook/pkg-files/chapter.xml index f4ae15e2eb..83ddf81d14 100644 --- a/en_US.ISO8859-1/books/porters-handbook/pkg-files/chapter.xml +++ b/en_US.ISO8859-1/books/porters-handbook/pkg-files/chapter.xml @@ -164,30 +164,7 @@ - - UCL allows for two kind of strings, either delimited - by double quotes - "foo", or as a - here document. These two - are equivalent: - - [ -{ message: "Always displayed" -} -] - - [ -{ message: <<EOM -Always displayed -EOM -} -] - - The here document delimiter (EOM - here) must be uppercase. - - - + To preserve the compatibility with non UCL pkg-message files, the first line of a UCL @@ -196,7 +173,43 @@ EOM [, and the last line MUST be a single ]. - + + + + <acronym>UCL</acronym> Short Strings + + The message is delimited by double quotes + ", this is used for simple single line + strings: + + [ +{ + message: "Simple message" +} +] + + + + <acronym>UCL</acronym> Multiline Strings + + Multiline strings use the standard here document + notation. The multiline delimiter must + start just after << symbols without + any whitespace and it must consist of + capital letters only. To finish a multiline string, add the + delimiter string on a line of its own without any + whitespace. The message from can be written + as: + + [ +{ + message: <<EOM +Simple message +EOM +} +] + Always Display a Message