Skip to content

Commit

Permalink
do not remove spaces starting a new paragraph
Browse files Browse the repository at this point in the history
  • Loading branch information
xulihang committed Jun 22, 2023
1 parent 4ccfb24 commit 14920b1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions BasicCAT/segmentation.bas
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@ Sub addPosition(pos As Int,breakPositions As Map,ruleIndex As Int)
End Sub

Sub removeSpacesAtBothSides(projectPath As String,targetLang As String,text As String,previousText As String,removeRedundantSpaces As Boolean) As String
If previousText.EndsWith(CRLF) Then
Return text 'do not remove spaces starting a new paragraph
End If
readRulesOfProject(targetLang,projectPath)
Dim breakPositionsMap As Map=getPositions("yes",previousText&text)
Dim breakPositions As List
Expand Down

0 comments on commit 14920b1

Please sign in to comment.