summaryrefslogtreecommitdiffstats
path: root/mdoc.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-07-28 14:17:11 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-07-28 14:17:11 +0000
commit15696d5c38136940b4cfd2a42f1cc5a6760472cb (patch)
tree92c15c2969443a6e8a3f4864cc0916a5f5f66a24 /mdoc.c
parent03a134b6041e592a5b647372a29677cbeb0a86fc (diff)
downloadmandoc-15696d5c38136940b4cfd2a42f1cc5a6760472cb.tar.gz
An implementation of `tr'. This routes allocations of TEXT nodes
through libroff, which does the appropriate translations of `tr'. This is SLOW: it uses the backend of `ds' and `de', which is a simple linear list. However, unlike `ds' and `de', it iterates over EACH CHARACTER of the entire file looking for replacements.
Diffstat (limited to 'mdoc.c')
-rw-r--r--mdoc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdoc.c b/mdoc.c
index 26788b0a..e7f7a378 100644
--- a/mdoc.c
+++ b/mdoc.c
@@ -570,7 +570,7 @@ mdoc_word_alloc(struct mdoc *m, int line, int pos, const char *p)
struct mdoc_node *n;
n = node_alloc(m, line, pos, MDOC_MAX, MDOC_TEXT);
- n->string = mandoc_strdup(p);
+ n->string = roff_strdup(m->roff, p);
if ( ! node_append(m, n))
return(0);