[squeak-dev] The Inbox: Collections-eem.732.mcz -- HtmlReadWriter

Tobias Pape Das.Linux at gmx.de
Thu Feb 9 20:11:08 UTC 2017


On 09.02.2017, at 21:06, Eliot Miranda <eliot.miranda at gmail.com> wrote:

> 
> OK, accepted, but if one is considering simply a text with indentation, say
> 
> This is a non-indented line.
>     This is an indented line.
> This is another unindented line.
> 
> We need to generate
> 
>  This is a non-indented line.<br>
> <pre>    This is an indented line.
> </pre>
> This is another unindented line.<br>
> 
> Right?  Right now there is no way to achieve this.  Adding a <code></code> tag pair around the indented line is wrong.  Having to mark it as a doit is wrong.  But the only way to preserve the indentation is to use <pre>.  That's what my changes (save arguably adding the closing </pre> in the wrong place) achieved.  No need to mark things as dots.  One simply indents, and whitespace is preserved.  Simple.

No, that circumvents text attributes.

I understand you want the second line indented the way you proposed, but that's not the complete truth for any text.
Because Pararaph indents, because non-code intents, because reflow (<pre> does _not_ reflow).

So the following would come out as <pre>, but that's completely unacceptable:

Voluptatem est adipisci explicabo sequi numquam sunt et quo. Possimus sunt illum culpa. Excepturi dolorum asperiores tenetur. Asperiores culpa quia dolorem eum esse et. Qui suscipit consequatur modi et. Nisi quod id hic odio.
	Reprehenderit ratione aut enim. Sed mollitia vero sed fugit iure. Quibusdam nostrum expedita dolor rerum repellat suscipit aliquam. Alias quo et nostrum est.
Qui minima hic ullam. Et iure sint sint et. Ut velit debitis qui sunt corrupti id odit asperiores.


Actually, there's a TextIndent attribute, we should make use of it (add working key code, add working html generation).

Best regards
	-Tobias




More information about the Squeak-dev mailing list