diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-07-28 14:17:11 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-07-28 14:17:11 +0000 |
commit | 15696d5c38136940b4cfd2a42f1cc5a6760472cb (patch) | |
tree | 92c15c2969443a6e8a3f4864cc0916a5f5f66a24 /man.c | |
parent | 03a134b6041e592a5b647372a29677cbeb0a86fc (diff) | |
download | mandoc-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |