List for cgit developers and users
 help / color / mirror / Atom feed
* [PATCH v2 1/3] highlight: add workaround for empty lines getting filtered out
@ 2012-02-21 12:13 mailings
  2012-02-21 12:13 ` [PATCH v2 2/3] highlight: declare variables mailings
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: mailings @ 2012-02-21 12:13 UTC (permalink / raw)


From: Ferry Huberts <ferry.huberts at pelagic.nl>

Saw this happening on a CentOS 6.2 box

Signed-off-by: Ferry Huberts <ferry.huberts at pelagic.nl>
---
 filters/syntax-highlighting.sh |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/filters/syntax-highlighting.sh b/filters/syntax-highlighting.sh
index 6283ce9..c930e07 100755
--- a/filters/syntax-highlighting.sh
+++ b/filters/syntax-highlighting.sh
@@ -42,4 +42,5 @@ EXTENSION="${BASENAME##*.}"
 # map Makefile and Makefile.* to .mk
 [ "${BASENAME%%.*}" == "Makefile" ] && EXTENSION=mk
 
-exec highlight --force -f -I -X -S $EXTENSION 2>/dev/null
+# the sed with &nbsp; is a workaround for empty lines getting filtered out
+exec highlight --force -f -I -X -S $EXTENSION 2>/dev/null | sed -r 's/^[[:space:]]*$/\&nbsp;/'
-- 
1.7.7.6





^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2012-02-21 18:41 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-21 12:13 [PATCH v2 1/3] highlight: add workaround for empty lines getting filtered out mailings
2012-02-21 12:13 ` [PATCH v2 2/3] highlight: declare variables mailings
2012-02-21 13:23   ` cgit
2012-02-21 12:13 ` [PATCH v2 3/3] highlight: fix syntax highlighting for program versions > 2 mailings
2012-02-21 13:27   ` cgit
2012-02-21 13:47     ` mailings
2012-02-21 14:21       ` cgit
2012-02-21 13:16 ` [PATCH v2 1/3] highlight: add workaround for empty lines getting filtered out cgit
2012-02-21 13:45   ` mailings
2012-02-21 14:23     ` cgit
2012-02-21 15:21       ` mailings
2012-02-21 18:41       ` mailings

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).