Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lightwrite/texts/views.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# encoding: utf-8
from django.http import HttpResponse, HttpResponseRedirect
from django.template import Context, loader
from django.core.urlresolvers import reverse
Expand Down Expand Up @@ -47,8 +48,7 @@ def json_get_text(request, wash):
t = Text.objects.filter(wash=wash)
if (len(t)==0):
t = Text(wash=wash)
# Display mac command as HTML entity
t.text = '\n\nWelcome to LightWrite!\nby Gun.io\n\nLightWrite is a web-based clone of WriteRoom - it\'s a place to write your thoughts without any distractions.\n\nTo use LightWrite, just start typing! You can move your mouse over the bottom of the page to save your text online or export to a file. \n\nTo enter fullscreen mode, just press F11, or ⌘F if you\'re using OSX.\n\nEnjoy!\n\nLove,\nTeam Gun.io'
t.text = '\n\nWelcome to LightWrite!\nby Gun.io\n\nLightWrite is a web-based clone of WriteRoom - it\'s a place to write your thoughts without any distractions.\n\nTo use LightWrite, just start typing! You can move your mouse over the bottom of the page to save your text online or export to a file. \n\nTo enter fullscreen mode, just press F11, or ⇧⌘F if you\'re using OSX.\n\nEnjoy!\n\nLove,\nTeam Gun.io'
t.save()
t = Text.objects.filter(wash=wash)
data = serializers.serialize("json", t)
Expand Down