Minor improves on documentation and markup utilities.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2020-07-27 20:52:44 -05:00
parent fbc60bd2cb
commit ce7b7c5810
2 changed files with 4 additions and 2 deletions

View File

@ -47,7 +47,7 @@ GrafoscopioDocumentation class >> update [
{ #category : #updating } { #category : #updating }
GrafoscopioDocumentation class >> updateAll [ GrafoscopioDocumentation class >> updateAll [
{GrafoscopioDocs . DatavizDocs . OffshoreLeaksDocs} do: [ :docs | docs update ] GfUIHelpers docsCollection do: [ :docs | docs update ]
] ]
{ #category : #updating } { #category : #updating }

View File

@ -14,8 +14,10 @@ Class {
MarkupFile class >> exportAsFileOn: aFileReferenceOrFileName containing: text [ MarkupFile class >> exportAsFileOn: aFileReferenceOrFileName containing: text [
| file | | file |
file := aFileReferenceOrFileName asFileReference. file := aFileReferenceOrFileName asFileReference.
file ensureDelete.
file exists ifFalse: [ file ensureCreateFile ]. file exists ifFalse: [ file ensureCreateFile ].
file writeStreamDo: [ :stream | file writeStreamDo: [ :stream |
stream nextPutAll: text withInternetLineEndings]. stream nextPutAll: text withInternetLineEndings].
self inform: 'Exported as: ', String cr, file fullName self inform: 'Exported as: ', String cr, file fullName.
^ file
] ]