Skip to content

Commit

Permalink
Merge pull request #836 from pillar-markup/686-Minimise-package-exten…
Browse files Browse the repository at this point in the history
…sion

Fix typos
  • Loading branch information
Ducasse authored Aug 6, 2024
2 parents a207ee2 + 8b31db3 commit eca577b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 22 deletions.
18 changes: 0 additions & 18 deletions src/Microdown-HTMLExporter/Integer.extension.st

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,5 @@ MicHTMLStylerCSSSourcePresenter >> updateSizeMessage: anInteger [
(String streamContents: [ : stream |
stream
<< 'File size: ';
<< anInteger asFileSizeString ])
<< anInteger humanReadableByteSizeString ])
]
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,5 @@ MicHTMLStylerHTMLSourcePresenter >> updateSizeMessage: anInteger [
(String streamContents: [ : stream |
stream
<< 'File size: ';
<< anInteger asFileSizeString ])
<< anInteger humanReadableByteSizeString ])
]
5 changes: 3 additions & 2 deletions src/Microdown/String.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@ String >> stripNtabs: n [
"remove up to N tabs from the beginning"
| count max |
max := n min: self size.
count := 1. "all charcters less than count are tabs"
count := 1. "all characters less than count are tabs"
[ count <= max and: [ (self at: count) = Character tab ] ]
whileTrue: [count := count + 1].
^ self allButFirst: count-1
]

{ #category : '*Microdown' }
String >> withoutPreTabs [
"return a copy of me, without tabs in the begining "
"return a copy of me, without tabs in the begining"

^ self trimLeft: [ :char | char = Character tab ]
]

0 comments on commit eca577b

Please sign in to comment.