Skip to content

Commit 89b2cd1

Browse files
committed
do not add lines at the beginning
1 parent b744d1e commit 89b2cd1

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

BasicCAT/BasicCAT.b4j.meta

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,4 +182,4 @@ ModuleClosedNodes7=
182182
ModuleClosedNodes8=
183183
ModuleClosedNodes9=
184184
SelectedBuild=0
185-
VisibleModules=1,2,3,4,5,6,7,8,9,10,15,16,41,11,21,50
185+
VisibleModules=1,2,3,4,5,6,7,8,9,10,15,16,41,11,21,50,56

BasicCAT/Utils.bas

+12-4
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,16 @@ Sub exportToMarkdownWithNotes(segments As List,path As String,filename As String
161161
Dim id As String
162162
id=extra.Get("id")
163163
If previousID<>id Then
164-
fullsource=CRLF&fullsource
164+
If id<>-1 Then
165+
fullsource=CRLF&fullsource
166+
End If
165167
previousID=id
166168
End If
167169
End If
168170
If innerFilename<>previousInnerFilename Then
169-
fullsource=CRLF&fullsource
171+
If previousInnerFilename<>"" Then
172+
fullsource=CRLF&fullsource
173+
End If
170174
previousInnerFilename=innerFilename
171175
End If
172176
source=Regex.Replace2("<.*?>",32,source,"")
@@ -214,12 +218,16 @@ Sub exportToBiParagraph(segments As List,path As String,filename As String,sourc
214218
Dim id As String
215219
id=extra.Get("id")
216220
If previousID<>id Then
217-
fullsource=CRLF&fullsource
221+
If previousID<>-1 Then
222+
fullsource=CRLF&fullsource
223+
End If
218224
previousID=id
219225
End If
220226
End If
221227
If innerFilename<>previousInnerFilename Then
222-
fullsource=CRLF&fullsource
228+
If previousInnerFilename<>"" Then
229+
fullsource=CRLF&fullsource
230+
End If
223231
previousInnerFilename=innerFilename
224232
End If
225233
source=Regex.Replace2("<.*?>",32,source,"")

0 commit comments

Comments
 (0)