aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_man.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-01-22 20:58:39 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-01-22 20:58:39 +0000
commita5cf99ba0ce655c79f97727aa85c3afd804f98c9 (patch)
treee92a3c2a62fc2c363af2ca9c2aa16c0bcb34c80f /mdoc_man.c
parentfbfac7f409fc3e746d03f0beb37e36723d353e48 (diff)
downloadmandoc-a5cf99ba0ce655c79f97727aa85c3afd804f98c9.tar.gz
mandoc-a5cf99ba0ce655c79f97727aa85c3afd804f98c9.tar.zst
mandoc-a5cf99ba0ce655c79f97727aa85c3afd804f98c9.zip
Implement the \: (optional line break) escape sequence,
documented in the Ossanna-Kernighan-Ritter troff manual and also supported by groff. Missing feature reported by Steffen Nurpmeso <sdaoden at gmail dot com>.
Diffstat (limited to 'mdoc_man.c')
-rw-r--r--mdoc_man.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/mdoc_man.c b/mdoc_man.c
index 6ee8b3ab..a6517df5 100644
--- a/mdoc_man.c
+++ b/mdoc_man.c
@@ -1,6 +1,6 @@
-/* $Id: mdoc_man.c,v 1.57 2013/12/25 22:00:45 schwarze Exp $ */
+/* $Id: mdoc_man.c,v 1.58 2014/01/22 20:58:39 schwarze Exp $ */
/*
- * Copyright (c) 2011, 2012, 2013 Ingo Schwarze <schwarze@openbsd.org>
+ * Copyright (c) 2011, 2012, 2013, 2014 Ingo Schwarze <schwarze@openbsd.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -365,6 +365,9 @@ print_word(const char *s)
case (ASCII_HYPH):
putchar('-');
break;
+ case (ASCII_BREAK):
+ printf("\\:");
+ break;
case (' '):
if (MMAN_nbrword & outflags) {
printf("\\ ");