Skip to content

Commit

Permalink
Generovanie nových riadkov pri plain texte
Browse files Browse the repository at this point in the history
  • Loading branch information
mireq committed Apr 24, 2016
1 parent e2ed153 commit 7c649d1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions rich_editor/parser.py
@@ -1,10 +1,11 @@
# -*- coding: utf-8 -*-
import re

import StringIO
import copy
import re

from django.core.exceptions import ValidationError
from django.core.validators import URLValidator
from django.template.defaultfilters import linebreaks_filter
from django.utils.html import escape

from common_utils import build_absolute_uri
Expand Down Expand Up @@ -580,7 +581,7 @@ def get_attributes(self):

class TextParser:
def parse(self, text):
self.output = escape(text)
self.output = linebreaks_filter(escape(text))

def get_output(self):
return self.output
Expand Down

0 comments on commit 7c649d1

Please sign in to comment.