DVCS friendly document format for notebooks enabled. This closes the long asked feature reported in [058a50a883](http://mutabit.com/repos.fossil/grafoscopio/tktview?name=058a50a883) by @ijpulidos.
This commit is contained in:
parent
4d835b3f58
commit
0d1a7fabf0
@ -773,8 +773,15 @@ GrafoscopioBrowser >> exportAsPdf [
|
|||||||
|
|
||||||
{ #category : #persistence }
|
{ #category : #persistence }
|
||||||
GrafoscopioBrowser >> exportAsSton: aTree on: locator [
|
GrafoscopioBrowser >> exportAsSton: aTree on: locator [
|
||||||
|
| stonPrettyString |
|
||||||
aTree flatten.
|
aTree flatten.
|
||||||
locator nextPutAll: (STON toStringPretty: aTree children)
|
stonPrettyString := String streamContents: [ :stream |
|
||||||
|
(STON writer on: stream)
|
||||||
|
newLine: String crlf;
|
||||||
|
prettyPrint: true;
|
||||||
|
keepNewLines: true;
|
||||||
|
nextPut: aTree children].
|
||||||
|
locator nextPutAll: stonPrettyString "(STON toStringPretty: aTree children)"
|
||||||
]
|
]
|
||||||
|
|
||||||
{ #category : #'graphical interface' }
|
{ #category : #'graphical interface' }
|
||||||
|
Loading…
Reference in New Issue
Block a user