summaryrefslogtreecommitdiffstats
path: root/man.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 /man.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 'man.c')
-rw-r--r--man.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/man.c b/man.c
index b13039e8..3321bf63 100644
--- a/man.c
+++ b/man.c
@@ -322,7 +322,7 @@ man_word_alloc(struct man *m, int line, int pos, const char *word)
struct man_node *n;
n = man_node_alloc(m, line, pos, MAN_TEXT, MAN_MAX);
- n->string = mandoc_strdup(word);
+ n->string = roff_strdup(m->roff, word);
if ( ! man_node_append(m, n))
return(0);