summaryrefslogtreecommitdiff
path: root/plugins/HistoryPlusPlus/hpp_itemprocess.pas
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/HistoryPlusPlus/hpp_itemprocess.pas')
-rw-r--r--plugins/HistoryPlusPlus/hpp_itemprocess.pas8
1 files changed, 1 insertions, 7 deletions
diff --git a/plugins/HistoryPlusPlus/hpp_itemprocess.pas b/plugins/HistoryPlusPlus/hpp_itemprocess.pas
index 521c928017..3d5204c4c4 100644
--- a/plugins/HistoryPlusPlus/hpp_itemprocess.pas
+++ b/plugins/HistoryPlusPlus/hpp_itemprocess.pas
@@ -47,8 +47,6 @@
Contributors: theMIROn, Art Fedorov
-----------------------------------------------------------------------------}
-{$DEFINE USE_URL_BBCODE}
-
unit hpp_itemprocess;
interface
@@ -114,7 +112,7 @@ const
(sz:'white'; col:$FFFFFF));
const
- bbCodesCount = {$IFDEF USE_URL_BBCODE}7{$ELSE}6{$ENDIF};
+ bbCodesCount = 7;
var
bbCodes: array[0..bbCodesCount,bbStart..bbEnd] of TBBCodeInfo = (
@@ -128,10 +126,8 @@ var
(prefix:(ansi:'[/s]'); suffix:(ansi:nil); bbtype:bbSimple; rtf:'}'; html:'</s>')),
((prefix:(ansi:'[color='); suffix:(ansi:']'); bbtype:bbColor; rtf:'{\cf%u '; html:'<font style="color:%s">'; minRE: 10),
(prefix:(ansi:'[/color]'); suffix:(ansi:nil); bbtype:bbSimple; rtf:'}'; html:'</font>')),
- {$IFDEF USE_URL_BBCODE}
((prefix:(ansi:'[url='); suffix:(ansi:']'); bbtype:bbUrl; rtf:'{\field{\*\fldinst{HYPERLINK ":%s"}}{\fldrslt{\ul\cf%u'; html:'<a href="%s">'; minRE: 31),
(prefix:(ansi:'[/url]'); suffix:(ansi:nil); bbtype:bbSimple; rtf:'}}}'; html:'</a>')),
- {$ENDIF}
((prefix:(ansi:'[size='); suffix:(ansi:']'); bbtype:bbSize; rtf:'{\fs%u '; html:'<font style="font-size:%spt">'; minRE: 10),
(prefix:(ansi:'[/size]'); suffix:(ansi:nil); bbtype:bbSimple; rtf:'}'; html:'</font>')),
((prefix:(ansi:'[img]'); suffix:(ansi:nil); bbtype:bbImage; rtf:'[{\revised\ul\cf%u '; html:'['; minRE: 20),
@@ -309,7 +305,6 @@ begin
if TryStrToInt(String(code), n) then
newCode := StrLFmt(fmt_buffer, MAX_FMTBUF, bbCodes[i, bbStart].rtf, [n shl 1]);
end;
-{$IFDEF USE_URL_BBCODE}
bbUrl:
begin
SetString(code, strCode, lenCode);
@@ -319,7 +314,6 @@ begin
n := 0;
newCode := StrLFmt(fmt_buffer, MAX_FMTBUF, bbCodes[i, bbStart].rtf, [PAnsiChar(code), n]);
end;
-{$ENDIF}
bbImage:
begin
if doColorBBCodes then