version 1.230, 2018/05/28 14:13:36 |
version 1.233, 2018/06/18 01:49:15 |
|
|
/* $Id$ */ |
/* $OpenBSD$ */ |
/* |
/* |
* Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv> |
* Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv> |
* Copyright (c) 2011-2015, 2017, 2018 Ingo Schwarze <schwarze@openbsd.org> |
* Copyright (c) 2011-2015, 2017, 2018 Ingo Schwarze <schwarze@openbsd.org> |
Line 694 print_otag(struct html *h, enum htmltag tag, const cha |
|
Line 694 print_otag(struct html *h, enum htmltag tag, const cha |
|
su = &mysu; |
su = &mysu; |
a2width(arg2, su); |
a2width(arg2, su); |
} |
} |
if (*fmt == '*') { |
|
if (su != NULL && su->unit == SCALE_EN && |
|
su->scale > 5.9 && su->scale < 6.1) |
|
su = NULL; |
|
fmt++; |
|
} |
|
if (*fmt == '+') { |
if (*fmt == '+') { |
if (su != NULL) { |
if (su != NULL) { |
/* Make even bold text fit. */ |
/* Make even bold text fit. */ |
Line 707 print_otag(struct html *h, enum htmltag tag, const cha |
|
Line 701 print_otag(struct html *h, enum htmltag tag, const cha |
|
/* Add padding. */ |
/* Add padding. */ |
su->scale += 3.0; |
su->scale += 3.0; |
} |
} |
fmt++; |
|
} |
|
if (*fmt == '-') { |
|
if (su != NULL) |
|
su->scale *= -1.0; |
|
fmt++; |
fmt++; |
} |
} |
break; |
break; |