<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style='font-size:10pt;font-family:Verdana,Arial,Helvetica,sans-serif;color:#00000;'><div><br></div><div>Good morning.<br></div><div><br></div><div>Go here: <a href="http://menmachinesmaterials.com/SeasideDoc" target="_blank">http://menmachinesmaterials.com/SeasideDoc</a><br></div><div>on left menu, click on HelpTopics.<br></div><div>Select 'Terse Guide'<br></div><div><br></div><div>for didactic purposes, scroll down to "Assignment" <br></div><div><br></div><div>Notice how the explanatory quoted text is right up next to the example.<br></div><div><br></div><div>For example, in my texinfo page x := 1.2 hash looks like this<br></div><div><br></div><div>output 1.</div><blockquote style="border: 1px solid rgb(204, 204, 204); padding: 7px; background-color: rgb(245, 245, 245);"><div>x := 1.2 hash.                                              "hash value for object"<br></div></blockquote><div><br></div><div>while on the webpage it looks like this:<br></div><div><br></div><div>output 2.</div><blockquote style="border: 1px solid rgb(204, 204, 204); padding: 7px; background-color: rgb(245, 245, 245);"><div>x := 1.2 hash."hash value for object"<br></div></blockquote><div><br></div><div><br></div><div>The reason is that within the TerseGiudeHelp > pages > assignment you can see that tabs and spaces are co mingled and the formatting is not aligned.<br></div><div><br></div><div>So, to remove that "bad" formatting, I used the following code:<br></div><div><br></div><div><blockquote style="border: 1px solid rgb(204, 204, 204); padding: 7px; background-color: rgb(245, 245, 245);"><div><br></div><div><br></div><div>html paragraph<br></div><div>      with:[<br></div><div>              html preformatted<br></div><div>              style:'white-space:pre-wrap; word-break: break-word;';<br></div><div>              with: (ht contents  copyWithRegex:'    '  matchesReplacedWith:' '  withBlanksCondensed  )]]]<br></div></blockquote></div><div><br></div><div>where 'ht contents' is the data stored in TerseGuideHelp > pages > assignment method.<br></div><div><br></div><div>What I would like to do is re-insert some space between the example and the quoted text explanations so that output 2 looks like output 1.<br></div><div><br></div><div><br></div><div>Maybe there is a way to do this cleanly within the String formatting methods?<br></div><div><br></div><div>I am messing around with Regex like so (using Date examples here)...<br></div><div><br></div><blockquote style="border: 1px solid rgb(204, 204, 204); padding: 7px; background-color: rgb(245, 245, 245);"><div>'y := Date nameOfDay: 1."weekday name (#Monday,...)"' copyWithRegex: '("([^"]|"")*")' matchesReplacedWith:'                        "the original string shifted over like this"'<br></div></blockquote><div><br></div><div><br></div><div>The problem is replacing "the original string shifted over like this" with the contents of the original quotes string of "weekday name (#Monday, ...)'<br></div><div><br></div><div>Any suggestions greatly appreciated.</div><div><br></div><div><br></div><div><br></div></div><br></body></html>