Changeset 4636 for trunk/src/netlabs/macros/reflowmail.e
- Timestamp:
- Aug 17, 2021, 9:28:59 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/src/netlabs/macros/reflowmail.e ¶
r3420 r4636 150 150 ; Reflow previous paragraph. 151 151 defproc Mail_ReflowMarkedLines( PrevParQuoteLevel, PrevPrevParQuoteLevel, PrevListIndent, PrevBullet, fEnableReflow, fIndentLists) 152 KeyPath = '\NEPMD\User\Format\Reflow' 153 NewListIndent = QueryConfigKey( KeyPath'\ListIndent') 154 152 155 QuoteChar = '>' 153 156 SpaceAmount = 1 -- Spaces after QuoteChar … … 173 176 endif 174 177 178 -- if not NewListIndent then 179 NewListIndent = PrevListIndent 180 -- endif 175 181 if fIndentLists then 176 lma = PrevListIndent + 1177 rma = RightMargin - PrevIndent - PrevListIndent182 lma = NewListIndent + 1 183 rma = RightMargin - PrevIndent - NewListIndent 178 184 pma = lma 179 185 else … … 182 188 -- Indent the bullet line to the length of the bullet chars plus 183 189 -- following spaces. Also the original indent is kept. 184 pma = PrevListIndent + 1190 pma = NewListIndent + 1 185 191 endif 186 192 … … 367 373 PrevListIndent = 0 368 374 369 KeyPath = '\NEPMD\User\Reflow\Mail\IndentedLines' 375 KeyPath = '\NEPMD\User\Format\Reflow' 376 fKeepIndent = QueryConfigKey( KeyPath'\KeepIndent') 377 fWrapIndent = QueryConfigKey( KeyPath'\WrapIndent') 378 fRecognizeLists = QueryConfigKey( KeyPath'\RecognizeLists') 379 fReindentLists = QueryConfigKey( KeyPath'\ReindentLists') 380 370 381 -- Default is to not reflow indented lines 371 fIndentedIsVerbatim = (QueryConfigKey( KeyPath) <> 1) 372 373 KeyPath = '\NEPMD\User\Reflow\Mail\IndentLists' 382 fIndentedIsVerbatim = (fKeepIndent) 374 383 -- Default is to indent lists 375 fIndentLists = ( QueryConfigKey( KeyPath) <> 0)384 fIndentLists = (fReindentLists) 376 385 377 386 .line = 1 … … 381 390 -- Add a blank line after last to make reflow of the last par easy 382 391 insertline '', .last + 1 383 i = 0 384 --do forever 385 do while i < 10000 386 i = i + 1 -- Added only as emergency stop, for nothing else. 387 -- Maybe this will help to find the bug in it? 392 do i = 1 to .last 388 393 fThisLineIsBlank = 0 389 394 fThisLineIsVerbatim = 0 … … 524 529 525 530 if fThisLineIsBlank = 0 then 526 mark _line531 markline 527 532 endif 528 533 … … 547 552 endif 548 553 549 enddo -- forever554 enddo -- i 550 555 551 556 -- Remove last blank lines
Note:
See TracChangeset
for help on using the changeset viewer.