Bug.
Present in versions 2.5.0, 2.5.1, 2.5.2
Curent cersion: 2.5.2
Loaded Qt: 6.4.2
Tested on
OS: Linux Mint 22.1
Release: 22.1
Codename: xia
Bug description.
I have this class in my CSS file
Code:
p.function {
white-space: pre-wrap;
margin-top: 1.5em;
font-family: listing;
font-size: 0.9em;
font-weight: normal;
font-style: italic;
text-align: left;
color: darkblue;
background-color: #CCFFFF;
border-top: #00CCCC solid 2px;
}
In XHTML, I manually did the following formatting
Code:
<p class="function">esp_err_t <span class="function_name">i2c_new_master_bus</span>(
const i2c_master_bus_config_t *bus_config,
i2c_master_bus_handle_t *ret_bus_handle)</p>
The resulting document looks like this
After I ran the Mend and Prettify All HTML Files command, Sigil removed all white space
Code:
<p class="function">esp_err_t <span class="function_name">i2c_new_master_bus</span>( const i2c_master_bus_config_t *bus_config, i2c_master_bus_handle_t *ret_bus_handle)</p>
Аnd the resulting document looks like this