summaryrefslogtreecommitdiff
path: root/cli/context.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cli/context.cxx')
-rw-r--r--cli/context.cxx25
1 files changed, 25 insertions, 0 deletions
diff --git a/cli/context.cxx b/cli/context.cxx
index f54c474..d2daab4 100644
--- a/cli/context.cxx
+++ b/cli/context.cxx
@@ -437,6 +437,31 @@ format_line (output_type ot, string& r, const char* s, size_t n)
switch (c)
{
+ case ' ':
+ {
+ // Non-ignorable space.
+ //
+ switch (ot)
+ {
+ case ot_plain:
+ {
+ r += ' ';
+ break;
+ }
+ case ot_html:
+ {
+ r += " ";
+ break;
+ }
+ case ot_man:
+ {
+ r += "\\ ";
+ break;
+ }
+ }
+
+ break;
+ }
case '-':
{
// N-dash. If someone wants m-dash, can use \-- with \-{}- as