From fdc6a869747edfc7f9ffa1603a36ee33bda0aa4f Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 24 May 2015 23:55:21 -0600 Subject: libremessages/librexgettext: Preserve two spaces after a period. Well, [.!?] really--this matches the behavior of `fmt -u`. --- src/lib/librexgettext | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/librexgettext') diff --git a/src/lib/librexgettext b/src/lib/librexgettext index 0732f81..aad79fa 100755 --- a/src/lib/librexgettext +++ b/src/lib/librexgettext @@ -102,7 +102,7 @@ main() { xgettext-sh "${simple[@]}" -- "${files[@]}" xgettext-sh "${prose[@]}" -- "${files[@]}" | # These are the raw strings given to prose functions tr '\n' '\r' | sed 's/"\r\s*"//g' | tr '\r' '\n' | # This removes the awkward word-wrapping done by xgettext - sed -r -e 's/(\\n|\\t|\t)/ /g' -e 's/ +/ /g' | # This collapses whitespace, HTML-style + sed -r -e 's/(\\n|\\t|\t)/ /g' -e 's/(^|[^.!? ]) +/\1 /g' -e 's/([.!?]) +/\1 /g' | # This collapses whitespace sed '/^\#, sh-format/d' } | msguniq -Fi } -- cgit v1.2.3-54-g00ecf