[fixed] [0.2.0a] Little bugfix - extra lines in preview

Want to share what MODs you've gotten to work with EM? Happy about all the time your're saving? Want to say "thanks"? Here's the place.
Forum rules
DO NOT give out any FTP passwords to anyone! There is no reason to do so! If you need help badly enough, create a temporary FTP account that is restricted to only the files that you need help with and give the information for that. Giving out FTP information can be very dangerous!
Locked
User avatar
Nux
Registered User
Posts: 943
Joined: Tue Jun 14, 2005 5:09 pm
Location: 3cities, Poland
Contact:

[fixed] [0.2.0a] Little bugfix - extra lines in preview

Post by Nux »

EDIT: Oh, damn, damn, damn - I knew I'll be too late :roll: :lol:.

"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 :twisted:.

Mod should be EMC if the correct easymod root would be given :lol:.

Code: Select all

##############################################################
## MOD Title&#58 Little bugfix extra carriage returns in preview mode
## MOD Author&#58 Nux < N/A > (Maciej Jaros) N/A
## MOD Description&#58
##		"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 &#58).
## MOD Version&#58   1.0.1
##
## Installation Level&#58 Easy
## Installation Time&#58 5 Minutes
##
## Files To Edit&#58 
##		includes/admin_easymod.php.txt		
##		languages/lang_easymod_english.php
##
## Included Files&#58
##		N/A
##############################################################

#
#---------------------[ OPEN ]---------------------
# [in easymod root dir]
includes/admin_easymod.php.txt

#
#---------------------[ FIND ]---------------------
#
		echo '<style type="text/css"><!-- .preview {color&#58red} --></style>' . "\n" ;

#
#---------------------[ IN-LINE FIND ]---------------------
#
.preview {color&#58red}

#
#---------------------[ IN-LINE AFTER, ADD ]---------------------
#
pre {margin&#58 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
Last edited by wGEric on Tue Jul 05, 2005 12:02 pm, edited 1 time in total.

User avatar
Nux
Registered User
Posts: 943
Joined: Tue Jun 14, 2005 5:09 pm
Location: 3cities, Poland
Contact:

Re: [0.2.0] Little bugfix - extra lines in preview

Post by Nux »

Still there...

wGEric
Registered User
Posts: 521
Joined: Wed Jun 11, 2003 2:07 am
Contact:

Re: [fixed] [0.2.0a] Little bugfix - extra lines in preview

Post by wGEric »

This will be fixed in the next release.
Eric

Locked