bug-gettext
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #59262] Scheme line continuations are not handled correctly


From: Florent Angly
Subject: [bug #59262] Scheme line continuations are not handled correctly
Date: Tue, 13 Oct 2020 08:35:48 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36

URL:
  <https://savannah.gnu.org/bugs/?59262>

                 Summary: Scheme line continuations are not handled correctly
                 Project: GNU gettext
            Submitted by: fangly
            Submitted on: Tue 13 Oct 2020 12:35:46 PM UTC
                Category: Translator tools
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Line continuations are described in section 6.7 of the Revised7 Report on the
Algorithmic Language
Scheme (R7RS, https://small.r7rs.org/attachment/r7rs.pdf):


A line ending which is preceded by \<intraline whitespace> expands to nothing
(along with any trailing intraline whitespace), and can be used to indent
strings for improved legibility.

Examples:
[...]
"Here’s text \
   containing just one line"


Here is a test Scheme source file "multiline_test.scm":

(i18n "Here’s text \
       containing just one line")


Using Gettext 0.21 to run the command,

xgettext --from-code=UTF-8 --language=Scheme --keyword=id:i18n
./multiline_test.scm

the result file "messages.po" contains the message:

#: multiline_test.scm:1
msgid "Here’s text        containing just one line"
msgstr ""


The msgid contains too many whitespaces and should be instead:

msgid "Here’s text containing just one line"





    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59262>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]