version 1.184, 2014/12/20 00:20:11 |
version 1.185, 2015/01/21 20:33:25 |
|
|
/* $Id$ */ |
/* $Id$ */ |
/* |
/* |
* Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv> |
* Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv> |
* Copyright (c) 2011, 2012, 2013, 2014 Ingo Schwarze <schwarze@openbsd.org> |
* Copyright (c) 2011-2015 Ingo Schwarze <schwarze@openbsd.org> |
* |
* |
* Permission to use, copy, modify, and distribute this software for any |
* Permission to use, copy, modify, and distribute this software for any |
* purpose with or without fee is hereby granted, provided that the above |
* purpose with or without fee is hereby granted, provided that the above |
Line 307 html_strlen(const char *cp) |
|
Line 307 html_strlen(const char *cp) |
|
case ESCAPE_NUMBERED: |
case ESCAPE_NUMBERED: |
/* FALLTHROUGH */ |
/* FALLTHROUGH */ |
case ESCAPE_SPECIAL: |
case ESCAPE_SPECIAL: |
|
/* FALLTHROUGH */ |
|
case ESCAPE_OVERSTRIKE: |
if (skip) |
if (skip) |
skip = 0; |
skip = 0; |
else |
else |
Line 433 print_encode(struct html *h, const char *p, int norecu |
|
Line 435 print_encode(struct html *h, const char *p, int norecu |
|
if ('\0' == *p) |
if ('\0' == *p) |
nospace = 1; |
nospace = 1; |
continue; |
continue; |
|
case ESCAPE_OVERSTRIKE: |
|
if (len == 0) |
|
continue; |
|
c = seq[len - 1]; |
|
break; |
default: |
default: |
continue; |
continue; |
} |
} |