             content = @generate_html
                 title       : @_title ? @editor.filename
                 filename    : @editor.filename
-                content     : (h for h in @_html).join('\n')
+                content     : _html
                 timestamp   : "#{(new Date()).toISOString()}".split('.')[0]
                 project_id  : @editor.project_id
                 author      : redux.getStore('account').get_fullname()

                    console.debug("write_text_file_to_project.resp: '#{resp}'")
                    cb?(err)

        async.parallel([sagews_data, process_lines], finalize)

# registering printers
printers = {}

                        data_url = scene.static_image
                        out ?= ''
                        out += "<div class='output sage3d'><img src='#{data_url}'></div>"
                else if ext == 'webm'
                    out ?= ''
                    out += "<video src='#{mesg.file.url}' class='sagews-output-video' controls></video>"
                else
                    # console.log 'msg.file', mark, mesg
                    if not @_output_ids[mark.id] # avoid duplicated outputs
