diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-14 05:36:07 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-14 05:36:07 +0000 |
commit | f24d8846442dca61e961b029eb67ce69c086dc41 (patch) | |
tree | 9dfd5252245704dbce1a313b181328a18e416b8d /strings.c | |
parent | dd296a1678ea613037cf62e6186201645adb26dc (diff) | |
download | mandoc-f24d8846442dca61e961b029eb67ce69c086dc41.tar.gz mandoc-f24d8846442dca61e961b029eb67ce69c086dc41.tar.zst mandoc-f24d8846442dca61e961b029eb67ce69c086dc41.zip |
Bumped version.
Added \| (non-breaking space, like \&).
Fixed termsym (TERMSYM_ALL).
Diffstat (limited to 'strings.c')
-rw-r--r-- | strings.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: strings.c,v 1.28 2009/03/13 07:46:10 kristaps Exp $ */ +/* $Id: strings.c,v 1.29 2009/03/14 05:36:07 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se> * @@ -89,6 +89,8 @@ mdoc_isescape(const char *p) /* FALLTHROUGH */ case (' '): /* FALLTHROUGH */ + case ('|'): + /* FALLTHROUGH */ case ('&'): /* FALLTHROUGH */ case ('.'): @@ -204,9 +206,9 @@ mdoc_atotime(const char *p) (void)memset(&tm, 0, sizeof(struct tm)); - if (xstrcmp(p, "$Mdocdate: March 13 2009 $")) + if (xstrcmp(p, "$Mdocdate: March 14 2009 $")) return(time(NULL)); - if ((pp = strptime(p, "$Mdocdate: March 13 2009 $", &tm)) && 0 == *pp) + if ((pp = strptime(p, "$Mdocdate: March 14 2009 $", &tm)) && 0 == *pp) return(mktime(&tm)); /* XXX - this matches "June 1999", which is wrong. */ if ((pp = strptime(p, "%b %d %Y", &tm)) && 0 == *pp) |