Flush document output data at EOF before determining the loader newline type.
Failure to do so fails determining the newline type for a single line ending with CR.
This commit is contained in:
parent
7ec8b4d745
commit
90fa9b31bb
|
@ -389,6 +389,10 @@ async_read_cb (GInputStream *stream,
|
|||
|
||||
loader = PLUMA_DOCUMENT_LOADER (gvloader);
|
||||
|
||||
g_output_stream_flush (gvloader->priv->output,
|
||||
NULL,
|
||||
&gvloader->priv->error);
|
||||
|
||||
loader->auto_detected_encoding =
|
||||
pluma_smart_charset_converter_get_guessed (gvloader->priv->converter);
|
||||
|
||||
|
|
Loading…
Reference in New Issue