"Unfortunately, becasue of HTML formatting, some extra carriage returns are occasionally added, but they will not appear when the file is actually written"
It's because of the default margin for <PRE> tag. Fix of this works on Mozilla - haven't tested elsewhere, but it should also work even for Exploder .
Mod should be EMC if the correct easymod root would be given .
Code: Select all
##############################################################
## MOD Title: Little bugfix extra carriage returns in preview mode
## MOD Author: Nux < N/A > (Maciej Jaros) N/A
## MOD Description:
## "Unfortunately, becasue of HTML formatting, some extra carriage returns
## are occasionally added, but they will not appear when the file is actually written"
## Fix of this works on Mozilla - haven't tested elsewhere, but it should also work :).
## MOD Version: 1.0.1
##
## Installation Level: Easy
## Installation Time: 5 Minutes
##
## Files To Edit:
## includes/admin_easymod.php.txt
## languages/lang_easymod_english.php
##
## Included Files:
## N/A
##############################################################
#
#---------------------[ OPEN ]---------------------
# [in easymod root dir]
includes/admin_easymod.php.txt
#
#---------------------[ FIND ]---------------------
#
echo '<style type="text/css"><!-- .preview {color:red} --></style>' . "\n" ;
#
#---------------------[ IN-LINE FIND ]---------------------
#
.preview {color:red}
#
#---------------------[ IN-LINE AFTER, ADD ]---------------------
#
pre {margin: 0px}
#
#---------------------[ OPEN ]---------------------
# [English]
# [in easymod root dir]
#
languages/lang_easymod_english.php
#
#---------------------[ FIND ]---------------------
#
$lang['EM_preview_desc'] = 'The following is a list of files that the MOD specifies to be modified. Click "View" to view what changes will take place. The changes that EasyMOD will make to the files are bolded in red. Unfortunately, becasue of HTML formatting, some extra carriage returns are occasionally added, but they will not appear when the file is actually written.' ;
#
#---------------------[ IN-LINE FIND ]---------------------
#
. Unfortunately, becasue of HTML formatting, some extra carriage returns are occasionally added, but they will not appear when the file is actually written.
#
#---------------------[ IN-LINE REPLACE WITH ]---------------------
#
.
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM