Actually by default Jamnntpd wraps to 72, not 79, but that is
irrelevant. :)
TK> Actually by default Jamnntpd wraps to 72, not 79, but that is
TK> irrelevant. :)
True. O:-)
I've found that JamNNTPd wraps at 72 chars in all lines except the last one, that can be up to 79 chars.
I've found that JamNNTPd wraps at 72 chars in all lines except the
last one, that can be up to 79 chars.
Yes, and it seems that it always wraps the text it shows to the
client. Defined by WRAP_WIDTH in nntpserv.c.
I've found that JamNNTPd wraps at 72 chars in all lines except
the last one, that can be up to 79 chars.
Yes, and it seems that it always wraps the text it shows to the
client. Defined by WRAP_WIDTH in nntpserv.c.
JamNNTPd always sends wrapped text. If flowed=on, it will append a
space to the end of each wrapped line. It's up to the client (if it
supports format=flowed) to re-join those lines and show it as a
paragraph.
However, in this server the Content-Type line has no "format=" part at all:
Content-Type: text/plain; charset="iso-8859-1"
So, IMHO the "hard wrap" setting WRAP_WIDTH 72 is not working as it
should with "flowed on". I think Jamnntpd should adjust the WRAP_WIDTH setting according to the "flowed" setting and not wrap lines with
"flowed on".
So, IMHO the "hard wrap" setting WRAP_WIDTH 72 is not working as
it should with "flowed on". I think Jamnntpd should adjust the
WRAP_WIDTH setting according to the "flowed" setting and not wrap
lines with "flowed on".
If I'm understanding you correctly, WRAP_WIDTH should remain 72 only
when 'def_flowed=off', and when 'def_flowed=on' it should be disabled completely? If that's the case, I agree.
In format=flowed, long lines are wrapped but they have a trailing space.
The client, if it supports this format, joins the lines, showing them as
a paragraph.
If I'm understanding you correctly, WRAP_WIDTH should remain 72 only
when 'def_flowed=off', and when 'def_flowed=on' it should be disabled
completely? If that's the case, I agree.
In format=flowed, long lines are wrapped but they have a trailing space. The client, if it supports this format, joins the lines, showing them as
a paragraph.
In format=flowed, long lines are wrapped but they have a trailing space.
The client, if it supports this format, joins the lines, showing them as
a paragraph.
Yep.
But for some reason TB doesn't act like this when using jam/smapinntpd.
In format=flowed, long lines are wrapped but they have a trailing
space. The client, if it supports this format, joins the lines,
showing them as a paragraph.
Yep.
But for some reason TB doesn't act like this when using
jam/smapinntpd.
In format=flowed, long lines are wrapped but they have a trailing
space. The client, if it supports this format, joins the lines,
showing them as a paragraph.
I understand this. However, what Tommi and I are discussing is that jamnntpd/smapinntpd is not doing this properly. I'm not sure
'WRAP_WIDTH 72' is very constant, as I see wrapping all over the place between 72-79 characters (which sometimes even wraps a word to the
next line and doesn't include a quote character before it). So either
the 'WRAP_WIDTH 72' and 'LINE_WIDTH 79' settings are messing with each other, or they're not implemented properly.
So, in my questions to Tommi, I'm more or less asking if anyone has actually figured out what WRAP_WIDTH is actually doing. It is only
checked for once in the code, and so is LINE_WIDTH. Neither of them
are checked for in the format=flowed section. It almost seems like the format=flowed section was an afterthought, and was added in after what
it was already doing. *shrug*
03 Apr 2024 21:16, you wrote to me:
>> In format=flowed, long lines are wrapped but they have a trailing
>> space. The client, if it supports this format, joins the lines,
>> showing them as a paragraph.
TK> Yep.
TK> But for some reason TB doesn't act like this when using
TK> jam/smapinntpd.
Works fine for me:
https://www.cyberiada.org/fido/tmpfiles/flowed-wide-window.jpg
https://www.cyberiada.org/fido/tmpfiles/flowed-narrow-window.jpg
On 4/4/24 07:57, Carlos Navarro wrote:
03 Apr 2024 21:16, you wrote to me:
>> In format=flowed, long lines are wrapped but they have a trailing
>> space. The client, if it supports this format, joins the lines,
>> showing them as a paragraph.
TK> Yep.
TK> But for some reason TB doesn't act like this when using
TK> jam/smapinntpd.
Works fine for me:
https://www.cyberiada.org/fido/tmpfiles/flowed-wide-window.jpg
https://www.cyberiada.org/fido/tmpfiles/flowed-narrow-window.jpg
Very interesting...
When JamNNTPd sends to the client,
- lines that are 79 or less are not wrapped
- lines longer than 79 are wrapped by 72
Strange as it may seem, that's how format=flowed is defined in the RFC.
Nevertheless, those are the suggested values (that JamNNTPd uses). Other numbers could be used instead, as long as they are 78 or less.
The code block for format=flowed appends spaces to the end of wrapped lines and does the 'space stuffing' at the beginning (inserts extra
space if it begins with space), as defined in the RFC.
I stand corrected. After resetting all wrap and flow custom settings in TB, text seems to flow just fine. :)
TK> Yep.
TK> But for some reason TB doesn't act like this when using
TK> jam/smapinntpd.
Hello Tommi,
On Thu, Apr 04 2024 20:50:50 +0000, you wrote:
I stand corrected. After resetting all wrap and flow customsettings in
TB, text seems to flow just fine. :)
Nevertheless, those are the suggested values (that JamNNTPd
uses). Other numbers could be used instead, as long as they are
78 or less.
Ok. So it's doing what it should be doing, then?
The code block for format=flowed appends spaces to the end of
wrapped lines and does the 'space stuffing' at the beginning
(inserts extra space if it begins with space), as defined in the
RFC.
Why would you want to stuff spaces at the beginning of a line if it
starts with a space? What is the reasoning behind that?
I think the problem comes in to play with this example:
Quoting a 78 (78 is just an example, it could probably be anywhere
from 74 or 75 or more characters) character line with smartquote will
not reformat the line back to 78 characters (or within the 79 line
width limit it should be at). It will then append the space, initials, quote character, and another space.. now making it 4 or 5 characters longer. This will then wrap the last word to the next line and it
won't have a quote character in front of it.
I would imagine it would also do this without smartquote enabled,
however it wouldn't add as many characters to the line, so you would
see the issue less (only when a line hits 77 or 78 characters
probably).
Golded seems to handle this, but Golded also seems to support
displaying quoted lines longer than 79 characters, which may very well
be because of the issue(s) above.
On 4/4/24 14:53, Tommi Koivula wrote:
On 4/4/24 07:57, Carlos Navarro wrote:
03 Apr 2024 21:16, you wrote to me:
In format=flowed, long lines are wrapped but they have a trailing
space. The client, if it supports this format, joins the lines,
showing them as a paragraph.
Yep.
But for some reason TB doesn't act like this when using
jam/smapinntpd.
Works fine for me:
https://www.cyberiada.org/fido/tmpfiles/flowed-wide-window.jpg
https://www.cyberiada.org/fido/tmpfiles/flowed-narrow-window.jpg
Very interesting...
I stand corrected. After resetting all wrap and flow custom settings in TB,
text seems to flow just fine. :)
'Tommi
---
* Origin: smapinntpd/lnx (2:221/1.0)
Sysop: | Fercho |
---|---|
Lugar: | La Plata, Buenos Aires |
Usuarios: | 32 |
Nodos: | 10 (0 / 10) |
Uptime: | 121:56:08 |
Llamadas: | 123 |
Archivoss: | 15,607 |
Mensajes: | 34,764 |
Novedades:
Servidor de Quake 3 Arena Online! - Conectate a ferchobbs.ddns.net, puerto 27960 y vence con tu equipo!