C dK Could you restate what you end objective is once again!
There may be other approaches to achieve the same thing. Perhaps in a new Tiddlywiki forum thread. Regards Tony On Tuesday, October 1, 2019 at 1:23:00 PM UTC+10, coda coder wrote: > > Hi Cd.K > > I hope you'll take Jeremy's word for it - he's telling you the same as I > told you (same link too). Browsers have been collapsing white-space for > over 25 years - even before there was any CSS. > > You space-space idea seems like you're trying to "fudge" a little bit of > markdown into HTML. Like I said before, that's going to break things - long > standing things. > > As for your bug report: good luck, but don't hold your breath. You might > want to see a similar one I filed six years ago that went absolutely > nowhere (well, they did eventually add my "small black box" idea). > > > https://bugzilla.mozilla.org/show_bug.cgi?id=967493 > > Fact is, once the HTML is rendered, they've lost it. All they have is the > DOM. Sounds crazy, but that's the net effect. Even crazier, if you > right-click, Edit as HTML, all is revealed. Talk about lunacy... > > > On Monday, September 30, 2019 at 2:09:25 AM UTC-5, Jeremy Ruston wrote: >> >> Hi Cd.K. >> >> I think maybe you're running into the way that HTML coalesces adjacent >> whitespace by default. The process is actually controlled by CSS -- see the >> CSS white-space property: >> >> https://developer.mozilla.org/en/docs/Web/CSS/white-space >> >> Generally, TW5 wikitext passes whitespace through to the browser's HTML >> parser. >> >> Best wishes >> >> Jeremy >> >> On Sunday, September 29, 2019 at 2:40:55 PM UTC+1, Cd.K wrote: >>> >>> Hello Jeremy Ruston >>> >>> >>>> Are you saying that the text for a tiddler that you are seeing in the >>>> HTML file doesn’t match the text you see within TW? >>>> >>>> >>> >>> No, I don't. It's not about a mistake. >>> >>> I just want to know where to set a breakpoint in the debugger to see the >>> original content of the tiddler's text field. >>> >>> Perhaps the following example with 10 spaces is clearer: >>> >>> number of blanks >>> between prefix >>> and suffix: 10 >>> prefix suffix >>> >>> Tiddler: >>> >>> [image: 29-09-_2019_15-21-34.png] >>> rendered with one blank between "prefix" and "suffix". >>> >>> Tiddler in draft mode: >>> >>> [image: 29-09-_2019_15-25-54.png] >>> You can see all 10 blanks between "prefix" and "suffix". >>> >>> How can I display these 10 spaces in the debugger? Which function or >>> method do I have to debug? >>> >>> What I'm actually interested in: Is there a function that returns the >>> original ("draft") content of the tiddler's text field for a given tiddler >>> title? Or which functions/methods do I have to use to build such a >>> function? >>> >>> >>> Regards >>> Cd.K >>> >>> >>> >>> -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/4a5263a1-16a8-4a9c-aa1b-a3a501a3cc64%40googlegroups.com.
