Fixed more unicode issues, or being more flexible when loading from database.
This commit is contained in:
@@ -230,9 +230,9 @@ feature -- HTML Output
|
|||||||
lnk := blog_api.node_api.node_link (n)
|
lnk := blog_api.node_api.node_link (n)
|
||||||
a_output.append ("<p class=%"blog_list_summary%">")
|
a_output.append ("<p class=%"blog_list_summary%">")
|
||||||
if attached api.format (n.format) as f then
|
if attached api.format (n.format) as f then
|
||||||
a_output.append (f.formatted_output (l_summary))
|
f.append_formatted_to (l_summary, a_output)
|
||||||
else
|
else
|
||||||
a_output.append (page.formats.default_format.formatted_output (l_summary))
|
page.formats.default_format.append_formatted_to (l_summary, a_output)
|
||||||
end
|
end
|
||||||
a_output.append ("<br />")
|
a_output.append ("<br />")
|
||||||
a_output.append (page.link ("See more...", lnk.location, Void))
|
a_output.append (page.link ("See more...", lnk.location, Void))
|
||||||
|
|||||||
@@ -302,6 +302,11 @@ feature -- Access
|
|||||||
l_item := sql_item (a_index)
|
l_item := sql_item (a_index)
|
||||||
if attached {READABLE_STRING_8} l_item as l_string then
|
if attached {READABLE_STRING_8} l_item as l_string then
|
||||||
Result := l_string
|
Result := l_string
|
||||||
|
elseif
|
||||||
|
attached {READABLE_STRING_32} l_item as l_string_32 and then
|
||||||
|
l_string_32.is_valid_as_string_8
|
||||||
|
then
|
||||||
|
Result := l_string_32.to_string_8
|
||||||
elseif attached {BOOLEAN} l_item as l_boolean then
|
elseif attached {BOOLEAN} l_item as l_boolean then
|
||||||
Result := l_boolean.out
|
Result := l_boolean.out
|
||||||
elseif attached {BOOLEAN_REF} l_item as l_boolean_ref then
|
elseif attached {BOOLEAN_REF} l_item as l_boolean_ref then
|
||||||
|
|||||||
Reference in New Issue
Block a user