From fa1d8a1fbb7beaafe337b7716d6c997b8cd78e2a Mon Sep 17 00:00:00 2001 From: George Clark Date: Sat, 11 Apr 2015 16:56:16 -0400 Subject: [PATCH] Item13369: WYSIWYG corrupts entities in macros Checking in a failing unit test, also update the topic to prevent a couple of cases of corruption: - Corruption of the copyright symbol - Wrapped tag breaks %ENDCOLOR% macro --- WysiwygPlugin/test/unit/WysiwygPlugin/TranslatorTests.pm | 8 ++++++++ core/data/System/DefaultPreferences.txt | 9 ++++++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/WysiwygPlugin/test/unit/WysiwygPlugin/TranslatorTests.pm b/WysiwygPlugin/test/unit/WysiwygPlugin/TranslatorTests.pm index dec54b551b..483f27155b 100644 --- a/WysiwygPlugin/test/unit/WysiwygPlugin/TranslatorTests.pm +++ b/WysiwygPlugin/test/unit/WysiwygPlugin/TranslatorTests.pm @@ -2944,6 +2944,14 @@ GLUED HTML tml => <<'TML',
+TML + }, + { + exec => ROUNDTRIP, + name => 'entityNamedInsideMacro_Item13369', + tml => <<'TML', +Outside macro © dash — done +%MAKETEXT{"Copyright &© mdash &—"}% TML }, { diff --git a/core/data/System/DefaultPreferences.txt b/core/data/System/DefaultPreferences.txt index 6026fe2b99..483b005ee9 100644 --- a/core/data/System/DefaultPreferences.txt +++ b/core/data/System/DefaultPreferences.txt @@ -1,4 +1,4 @@ -%META:TOPICINFO{author="ProjectContributor" date="1426431164" format="1.1" version="1"}% +%META:TOPICINFO{author="ProjectContributor" date="1428785755" format="1.1" version="1"}% %META:TOPICPARENT{name="AdminToolsCategory"}% ---+!! %WIKITOOLNAME% Site-Level Preferences @@ -35,12 +35,13 @@ Preference settings local to your site should be set in [[%LOCALSITEPREFS%]] (th * If yes, set SITEMAPLIST to =on=, do not set NOSEARCHALL, and add the "what" and "use to..." description for the site map. Make sure to list only links that include the name of the web, e.g. %WEB%.Topic links. * Set SITEMAPLIST = on * Set WEBSUMMARY = %IF{"defined SITEMAPWHAT" then="$percentSITEMAPWHAT$percent"}% %IF{"defined SITEMAPUSETO" then="$percentSITEMAPUSETO$percent"}% - + * Copyright notice: * Set WEBCOPYRIGHT = %MAKETEXT{%MAKETEXT{"Copyright &© by the contributing authors. All material on this collaboration platform is the property of the contributing authors." args="1999-%GMTIME{$year}%"}%
%MAKETEXT{"Ideas, requests, problems regarding [_1]? Send feedback" args="%WIKITOOLNAME%,mailto:%WIKIWEBMASTER%?subject=%WIKITOOLNAME%%20Feedback%20on%20%BASEWEB%.%BASETOPIC%"}% * Simplified Copyright notice for the WebRss feed (don't use any special characters, html tags, entities, wiki markup or WikiWords) * Set WEBRSSCOPYRIGHT = Copyright %GMTIME{"$year"}% by contributing authors +
* Exclude web from a =web="all"= search: (Set to =on= for hidden webs; is overwritten by web preferences) *Note* it is much better to use [[AccessControl][AccessControls]] in individual webs to control who can and can't view the contents of a web. NOSEARCHALL is retained for compatibility, but you should avoid using it. * Set NOSEARCHALL = @@ -365,7 +366,8 @@ Note, this feature also must be enabled on the UserRegistration page by adding * %GRAY% *Set GRAY = looks like this* %ENDCOLOR% * %SILVER% *Set SILVER = looks like this* %ENDCOLOR% * %WHITE% *Set WHITE = looks like this (with gray background)* %ENDCOLOR% - * The following color settings are enclosed in verbatim tags to avoid incorrect nesting of XHTML tags: + * The following color settings are enclosed in verbatim tags to avoid incorrect nesting of XHTML tags, and in sticky to prevent wrapping of the closing verbatim. + * Set YELLOW = * Set ORANGE = @@ -387,6 +389,7 @@ Note, this feature also must be enabled on the UserRegistration page by adding * Set WHITE = * Set ENDCOLOR = + ---++ Miscellaneous Settings