Introduction
Introduction Statistics Contact Development Disclaimer Help
Add escape possibility for everything. - pointtools - Simple point utilities to…
git clone git://bitreich.org/pointtools/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfr…
Log
Files
Refs
Tags
README
LICENSE
---
commit 0e58fcdb306d8383ead9eafdcd6666515a44ab50
parent e1ccb875a3dd3576e285e1cf49b6ebd6e344f1ae
Author: Christoph Lohmann <[email protected]>
Date: Wed, 29 Apr 2020 19:21:25 +0200
Add escape possibility for everything.
Diffstat:
M md2point.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/md2point.c b/md2point.c
@@ -132,7 +132,14 @@ main(void)
if (line[0] == '%')
continue;
- if (line[0] == '#' && line[1] == '#') {
+ if (line[0] == '\\') {
+ if (line[1] == '\0')
+ continue;
+
+ /* ignore text before first header */
+ if (fp)
+ fprintesc(fp, line+1);
+ } else if (line[0] == '#' && line[1] == '#') {
if (fp) {
fclose(fp);
fp = NULL;
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.