The script for this week is going to be another request by a customer. It is a good example of how to search for patterns in HTML and replace the content matching that pattern. A common task when converting an HTML document is trying to get indented paragraphs to indent at the same level. This is especially problematic when the document contains numbered paragraphs that are not hanging (such as a legal outline.) Dealing with this case isn’t exactly trivial in HTML, as it often imports with a set number of non-breaking spaces to create the indent. Unless you’re using a monospace font, the text will not perfectly align, and the outline will not look the same for every number. The best solution is to remove the non-breaking spaces, and wrap the lead-in text (the “(a)”, or “1.”, or “Section 1.”, etc) with a inline tag, using the display type “inline-block”. This, combined with a fixed width and “nowrap” properties, allows us to add a block of space that is a fixed width into a paragraph, so our lead-in text takes up exactly the right amount of space.
Continue reading "LDC #41: Align Outline Text" »Friday, June 30. 2017
LDC #41: Align Outline Text
Friday, June 23. 2017
LDC #40: Edit Objects
Thursday, June 22. 2017
SEC Names Robert Evans III as Deputy Director in the Division of Corporation Finance
Wednesday, June 21. 2017
How To Schedule an EDGAR Filing
Friday, June 16. 2017
LDC #39: Application Initialize Script
Thursday, June 15. 2017
Styles Come and Go; Consistency Is Timeless
Wednesday, June 14. 2017
Public Comments Available for SEC's Proposal for Inline XBRL Tagging
Monday, June 12. 2017
The House of Representatives Passes the Financial CHOICE Act
Friday, June 09. 2017
LDC #38: Save and Open Dialogs
Friday, June 02. 2017
LDC #37: Automated Test Filing XBRL, Part 2
Thursday, June 01. 2017
Form N-1A: New Changes Require Funds To Describe Fund Share Redemption Procedures
SEC Fee Rate Advisory #3 for 2017
Friday, May 26. 2017
LDC #36: Automated Test Filing XBRL, Part 1
Friday, May 19. 2017
LDC #35: Accessing Text Files
Monday, May 15. 2017
Proposed Amendments to Investment Advisers Act Rules
Quicksearch
Categories
Calendar
|
January '26 |
|
||||
|---|---|---|---|---|---|---|
| Mo | Tu | We | Th | Fr | Sa | Su |
| Thursday, January 01. 2026 | ||||||
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 | 31 | |

