diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-01-22 20:58:39 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-01-22 20:58:39 +0000 |
commit | a5cf99ba0ce655c79f97727aa85c3afd804f98c9 (patch) | |
tree | e92a3c2a62fc2c363af2ca9c2aa16c0bcb34c80f /mdoc_man.c | |
parent | fbfac7f409fc3e746d03f0beb37e36723d353e48 (diff) | |
download | mandoc-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.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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("\\ "); |