change name of mark_down_from_table, create min spacing of 3

This commit is contained in:
Paul Trowbridge 2017-09-27 12:55:58 -04:00
parent 12e466714f
commit 7c746f7e62

7
FL.bas
View File

@ -584,9 +584,10 @@ End Sub
Sub markdown_from_table()
Sub markdown_from_selection()
Dim wapi As New Windows_API
Dim x As New TheBigOne
Dim tbl() As Variant
@ -611,13 +612,13 @@ Sub markdown_from_table()
If r = 2 Then
md = md & "|"
For c = 1 To UBound(tbl, 2)
md = md & "---" & String(msl(c) - 3, "-") & "|"
md = md & "---" & String(x.MISCe_MaxInt(msl(c), 3) - 3, "-") & "|"
Next c
md = md & vbCrLf
End If
md = md & "|"
For c = 1 To UBound(tbl, 2)
md = md & tbl(r, c) & String(msl(c) - Len(tbl(r, c)), " ") & "|"
md = md & tbl(r, c) & String(x.MISCe_MaxInt(3, msl(c) - Len(tbl(r, c))), " ") & "|"
Next c
md = md & vbCrLf
Next r