• The site has now migrated to Xenforo 2. If you see any issues with the forum operation, please post them in the feedback thread.
  • Due to issues with external spam filters, QQ is currently unable to send any mail to Microsoft E-mail addresses. This includes any account at live.com, hotmail.com or msn.com. Signing up to the forum with one of these addresses will result in your verification E-mail never arriving. For best results, please use a different E-mail provider for your QQ address.
  • For prospective new members, a word of warning: don't use common names like Dennis, Simon, or Kenny if you decide to create an account. Spammers have used them all before you and gotten those names flagged in the anti-spam databases. Your account registration will be rejected because of it.
  • Since it has happened MULTIPLE times now, I want to be very clear about this. You do not get to abandon an account and create a new one. You do not get to pass an account to someone else and create a new one. If you do so anyway, you will be banned for creating sockpuppets.
  • Due to the actions of particularly persistent spammers and trolls, we will be banning disposable email addresses from today onward.
  • The rules regarding NSFW links have been updated. See here for details.

[ code ] not actually preserving spaces?

bluepencil

The tropics will be uninhabitable.
Joined
Feb 19, 2013
Messages
721
Likes received
11,595
In reference to [ code ] [ /code ] pasted from BattleTech java designers like Solaris Skunk Werks and MegaMekLab, as evidenced here. This works on SB, but not here. It just strips out spacing and clumps words together like normal forum input text.


[edit]
Testing spacing with normal text.
There should be a wide space above between (with) and (normal text).

Code:
Testing spacing with											  code text.
There should be a wide space above between (with) and (normal text).

So it works with input text, but not pasted text.

[edit again]
Code:
Testing spacing with pasted text.
================================================================================
Equipment Location Heat Critical Mass
--------------------------------------------------------------------------------
PPC RA 10 3 7.00
Never mind, I figured it out. QQ automatically strips spacing out of pasted text as soon as it drops into the text box.

This is... suboptimal. I need to figure out how to make QQ text boxes accept formatted text.
 
Last edited:
Never mind, I figured it out. QQ automatically strips spacing out of pasted text as soon as it drops into the text box.

This is... suboptimal. I need to figure out how to make QQ text boxes accept formatted text.

Posting the text in a Gdoc first, then pasting it again (not as plain text!) does it for me...
 
Posting the text in a Gdoc first, then pasting it again (not as plain text!) does it for me...

Testing:

Code:
Urbanhammer UR-HMR
================================================================================
Equipment								 Location	Heat	Critical	Mass
--------------------------------------------------------------------------------
PPC										  RA		10		3		 7.00
PPC										  LA		10		3		 7.00
Machine Gun								  RT		0		 1		 0.50
Small Laser								  RT		1		 1		 0.50
Medium Laser								 RT		3		 1		 1.00
SRM-6										RT		4		 2		 3.00
Machine Gun								  LT		0		 1		 0.50
Small Laser								  LT		1		 1		 0.50
Medium Laser								 LT		3		 1		 1.00
@SRM-6 (15)								  RT		-		 1		 1.00
@MG (200)									CT		-		 1		 1.00
											Free Critical Slots: 3
 
BattleForce Statistics
MV	  S (+0)  M (+2)  L (+4)  E (+6)   Wt.   Ov   Armor:	  7	Points: 15
4		  5	   4	   2	   0	  3	 0   Structure:  6
Special Abilities: CASEII, SRCH, ES, SEAL, SOA
Awesome. Thank you!

Still not a clean copy but much better than before.
 
Testing:

Code:
Urbanhammer UR-HMR
================================================================================
Equipment								 Location	Heat	Critical	Mass
--------------------------------------------------------------------------------
PPC										  RA		10		3		 7.00
PPC										  LA		10		3		 7.00
Machine Gun								  RT		0		 1		 0.50
Small Laser								  RT		1		 1		 0.50
Medium Laser								 RT		3		 1		 1.00
SRM-6										RT		4		 2		 3.00
Machine Gun								  LT		0		 1		 0.50
Small Laser								  LT		1		 1		 0.50
Medium Laser								 LT		3		 1		 1.00
@SRM-6 (15)								  RT		-		 1		 1.00
@MG (200)									CT		-		 1		 1.00
											Free Critical Slots: 3
 
BattleForce Statistics
MV	  S (+0)  M (+2)  L (+4)  E (+6)   Wt.   Ov   Armor:	  7	Points: 15
4		  5	   4	   2	   0	  3	 0   Structure:  6
Special Abilities: CASEII, SRCH, ES, SEAL, SOA
Awesome. Thank you!

Still not a clean copy but much better than before.

You're welcome! Happy to be of help.
 
If the rich text editor isn't working, you can always drop back to pure BBcode and adjust the spaces manually.
 

Users who are viewing this thread

Back
Top