Improving STON exporting, as recomended by Sven.
This commit is contained in:
parent
41a739487e
commit
f3335e4bb9
@ -265,19 +265,6 @@ GrafoscopioBrowser >> exportAsPdf [
|
|||||||
http://xetex.sourceforge.net/' ].
|
http://xetex.sourceforge.net/' ].
|
||||||
]
|
]
|
||||||
|
|
||||||
{ #category : #persistence }
|
|
||||||
GrafoscopioBrowser >> exportAsSton: aTree on: locator [
|
|
||||||
| stonPrettyString |
|
|
||||||
aTree flatten.
|
|
||||||
stonPrettyString := String streamContents: [ :stream |
|
|
||||||
(STON writer on: stream)
|
|
||||||
newLine: String crlf;
|
|
||||||
prettyPrint: true;
|
|
||||||
keepNewLines: true;
|
|
||||||
nextPut: aTree children].
|
|
||||||
locator nextPutAll: stonPrettyString
|
|
||||||
]
|
|
||||||
|
|
||||||
{ #category : #'graphical interface' }
|
{ #category : #'graphical interface' }
|
||||||
GrafoscopioBrowser >> headerOn: constructor [
|
GrafoscopioBrowser >> headerOn: constructor [
|
||||||
"Shows the body of a selected node"
|
"Shows the body of a selected node"
|
||||||
|
@ -192,15 +192,12 @@ GrafoscopioNotebook >> exportAsPDF [
|
|||||||
|
|
||||||
{ #category : #persistence }
|
{ #category : #persistence }
|
||||||
GrafoscopioNotebook >> exportAsSton: aNotebook on: aFileStream [
|
GrafoscopioNotebook >> exportAsSton: aNotebook on: aFileStream [
|
||||||
| stonPrettyString |
|
|
||||||
aNotebook flatten.
|
aNotebook flatten.
|
||||||
stonPrettyString := String streamContents: [ :stream |
|
(STON writer on: aFileStream)
|
||||||
(STON writer on: stream)
|
|
||||||
newLine: String crlf;
|
newLine: String crlf;
|
||||||
prettyPrint: true;
|
prettyPrint: true;
|
||||||
keepNewLines: true;
|
keepNewLines: true;
|
||||||
nextPut: aNotebook children].
|
nextPut: aNotebook children
|
||||||
aFileStream nextPutAll: stonPrettyString
|
|
||||||
]
|
]
|
||||||
|
|
||||||
{ #category : #persistence }
|
{ #category : #persistence }
|
||||||
|
Loading…
Reference in New Issue
Block a user