• last updated 29 mins ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Merged bug fix from HEAD: util_close_html_tags would actually insert the end tag even though it had discarded the open tag, e.g. if you said <form>, you'd get </FORM>!

Fixed bug: util_close_html_tags would actually insert the end tag even though it had discarded the open tag, e.g. if you said <form>, you'd get </FORM>!

merge from oacs-4-6

  1. … 130 more files in changeset.
add a space after the image url in ad_html_to_text since otherwise the url often has the ] appended

fix ad_html_to_text pre CRLF to return mapping (was inserting literal \n)

patches some of the problems ad_text_to_html has with url's that

contain email addresses and plain text email with mailto: already

prepended. also inserts \\n so the html is readable in source. removes

residual sTaRt/eNd magic just in case.

It does not handle URLs with userinfo like http://user:passwd@foo.com/zim

bug 1842/patch 491

add @see comments for most deprecated functions

  1. … 9 more files in changeset.
- Added 'string_truncate' proc that can truncate a string, potentially close any cut-open HTML tags, and add ellipsis ...

Fixed problem introduced by Arjun's change of tab processing: Tab characters was part of Branimir's sTaRtUrL hack. Since the tabs got replaced with spaces, the sTaRtUrL/eNdUrL things didn't get replaced back. I've moved the tab expansion to the end of the proc, and that takes care of the problem. In addition, I've added quotes, single and double, to the list of characters that we strip from the end of a URL.

ad_text_to_html: two spaces to an nbsp, and tabs to 4 nbsp's.

added code to ad_text_to_html to Convert _single_ CRLF's to <br>'s to preserve line breaks

correct my email address.

  1. … 16 more files in changeset.
Fixed bug # #1536 using patch #252: ad_text_to_html doesn't make a paragraph break if your two consecutive line breaks are separated by white space, e.g., you accidentally put a space character on a line by itself.

1. Added a new Tcl procedure to the content repository's library, named

cr_write_content, which properly writes content to the connection

regardless of RDBMS and storage type. This simplified a bunch of stuff

(which explains the removed files).

2. Fixed a lot of general comments issues regarding HTML vs. Plain/Text,

attachments, etc.

3. Partially ported glossary.

  1. … 81 more files in changeset.
OpenACS 4.x

  1. … 1321 more files in changeset.
Initial revision

    • -0
    • +1329
    ./text-html-procs.tcl
  1. … 1321 more files in changeset.