More local ownership
Some checks failed
CI / ubuntu-latest-html-tests (push) Has been cancelled
CI / alpine-mbedtls-3_6_0 (push) Has been cancelled
CI / ubuntu-latest-no-tls (push) Has been cancelled
CI / ubuntu-latest-mbedtls2 (push) Has been cancelled
CI / ubuntu-latest-openssl-3 (push) Has been cancelled
CI / ubuntu-latest-with-old-std (push) Has been cancelled
CI / ubuntu-20-04-openssl-1-1 (push) Has been cancelled
CI / macOS-13-openssl-1-1 (push) Has been cancelled
CI / macOS-13-openssl-3 (push) Has been cancelled
CI / freebsd-14-openssl-3 (push) Has been cancelled
CI / windows-mbedtls (push) Has been cancelled
Some checks failed
CI / ubuntu-latest-html-tests (push) Has been cancelled
CI / alpine-mbedtls-3_6_0 (push) Has been cancelled
CI / ubuntu-latest-no-tls (push) Has been cancelled
CI / ubuntu-latest-mbedtls2 (push) Has been cancelled
CI / ubuntu-latest-openssl-3 (push) Has been cancelled
CI / ubuntu-latest-with-old-std (push) Has been cancelled
CI / ubuntu-20-04-openssl-1-1 (push) Has been cancelled
CI / macOS-13-openssl-1-1 (push) Has been cancelled
CI / macOS-13-openssl-3 (push) Has been cancelled
CI / freebsd-14-openssl-3 (push) Has been cancelled
CI / windows-mbedtls (push) Has been cancelled
This commit is contained in:
11
src/html.cc
11
src/html.cc
@ -1078,7 +1078,6 @@ static void Html_process_space_pre_line(DilloHtml *html, const char *space,
|
|||||||
static void Html_process_space(DilloHtml *html, const char *space,
|
static void Html_process_space(DilloHtml *html, const char *space,
|
||||||
int spacesize)
|
int spacesize)
|
||||||
{
|
{
|
||||||
char *spc;
|
|
||||||
int i, offset;
|
int i, offset;
|
||||||
DilloHtmlParseMode parse_mode = S_TOP(html)->parse_mode;
|
DilloHtmlParseMode parse_mode = S_TOP(html)->parse_mode;
|
||||||
|
|
||||||
@ -1100,9 +1099,8 @@ static void Html_process_space(DilloHtml *html, const char *space,
|
|||||||
(space[i] == '\r' || (space[i] == '\n' && !html->PrevWasCR))) {
|
(space[i] == '\r' || (space[i] == '\n' && !html->PrevWasCR))) {
|
||||||
|
|
||||||
if (spaceCnt) {
|
if (spaceCnt) {
|
||||||
spc = dStrnfill(spaceCnt, ' ');
|
std::string spc( spaceCnt, ' ' );
|
||||||
HT2TB(html)->addText (spc, spaceCnt, html->wordStyle ());
|
HT2TB(html)->addText (spc.data(), spaceCnt, html->wordStyle ());
|
||||||
dFree(spc);
|
|
||||||
spaceCnt = 0;
|
spaceCnt = 0;
|
||||||
}
|
}
|
||||||
HT2TB(html)->addLinebreak (html->wordStyle ());
|
HT2TB(html)->addLinebreak (html->wordStyle ());
|
||||||
@ -1134,9 +1132,8 @@ static void Html_process_space(DilloHtml *html, const char *space,
|
|||||||
if (spaceCnt) {
|
if (spaceCnt) {
|
||||||
// add break possibility for the white-space:pre-wrap case
|
// add break possibility for the white-space:pre-wrap case
|
||||||
HT2TB(html)->addBreakOption (html->wordStyle (), false);
|
HT2TB(html)->addBreakOption (html->wordStyle (), false);
|
||||||
spc = dStrnfill(spaceCnt, ' ');
|
std::string spc( spaceCnt, ' ' );
|
||||||
HT2TB(html)->addText (spc, spaceCnt, html->wordStyle ());
|
HT2TB(html)->addText (spc.data(), spaceCnt, html->wordStyle ());
|
||||||
dFree(spc);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user