diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2015-03-16 07:19:01 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2015-03-16 07:25:38 +0100 |
commit | cb8411d711700cd823c45cb42773c700e167de73 (patch) | |
tree | d49b61fd4b3cf9ef05e3d4fe120c400eb1e5fada /src/spawn.cpp | |
parent | c310c7d875c8aa871180de130e820ed19a2489f5 (diff) | |
download | sciteco-cb8411d711700cd823c45cb42773c700e167de73.tar.gz |
documented the automatic EOL translation feature
Diffstat (limited to 'src/spawn.cpp')
-rw-r--r-- | src/spawn.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/spawn.cpp b/src/spawn.cpp index af42a95..c1ffce8 100644 --- a/src/spawn.cpp +++ b/src/spawn.cpp @@ -133,8 +133,17 @@ parse_shell_command_line(const gchar *cmdline, GError **error) * and its standard input stream is fed with data from the * current document, i.e. text is piped into the external * program. + * When automatic EOL translation is enabled, this will + * translate all end of line sequences according to the + * source document's EOL mode (see \fBEL\fP command). + * For instance when piping from a document with DOS + * line breaks, the receiving program will only be sent + * DOS line breaks. * The process' standard output stream is also redirected * and inserted into the current document. + * End of line sequences are normalized accordingly + * but the EOL mode guessed from the program's output is + * \fBnot\fP set on the document. * The process' standard error stream is discarded. * If data is piped into the external program, its output * replaces that data in the buffer. @@ -455,6 +464,9 @@ gerror: * the current buffer position and writing process output * to the Q-Register <q>. * In other words, the current buffer is not modified by EG. + * Also since EG replaces the string value of <q>, the register's + * EOL mode is set to the mode guessed from the external program's + * output. * * The register <q> is defined if it does not already exist. */ |