Wrox Programmer Forums
|
Forum and Wrox.com Feedback Post your suggestions for improving the Forums or Wrox.com or questions for the staff here. "Where can I find the code for my book?"
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Forum and Wrox.com Feedback section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old May 3rd, 2004, 03:26 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default Bug in the editing feature

Hi all,

There is a little bug in the forum that has been troubling me for some time. When you edit your post, some HTML tags are replaced with their Snitz equivalents. For example, try this:

1. Create a new message, and add the following code:

  [code]
  Hi, I am a code example.<br />
  <br />
  [/code]

2. Click the Post New Reply button.

3. Click the Edit Reply button, to get back to the message editor:
The code now looks like this:

  [code]
  Hi, I am a code example.[br]
  [br]
  [/code]

The real HTML line breaks have been replaced with Snitz equivalents, causing a true line break in the code example, instead of the intended br element in the code text.

Is this something that can be fixed? I messed up a few HTML code examples already, and I don't feel like replacing the Snitz codes every time I edit a message....
Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Man Next Door by Massive Attack (Track 7 from the album: Mezzanine) What's This?
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
  #2 (permalink)  
Old May 3rd, 2004, 10:19 AM
Friend of Wrox
 
Join Date: May 2003
Posts: 202
Thanks: 0
Thanked 1 Time in 1 Post
Default

I tried testing your example but couldn't cause the bug you are reporting.

In all cases, editing the posts (even multiple times) leaves the <br /> intact.

Maybe there's some other sequence of events that causes the problem?

Bruce Luckcuck
Director, Applications & Support Services
Wiley Publishing, Inc.
  #3 (permalink)  
Old May 3rd, 2004, 10:23 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

I can at least successfully reproduce it when I edit an *existing* post, like this one.
Here are the steps to reproduce:

1. Create a message with a code block with two HTML breaks.
2. Post the message
3. Click Edit to edit the message
4. Make a change to your message, and make a spelling mistake so you get to see the Edit Reply button. Click the button to return to your message.
5. Now your breaks will be changed to Snitz code...

Imar
  #4 (permalink)  
Old May 3rd, 2004, 12:44 PM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 451
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Ben Horne
Default

Wait a minute!

Isn't HTML code turned off for this forum? I'm just a bit curious about your situation because I believe that the reason you're experiencing this is because HTML is off.

Ben Horne
Madison Area Technical College - Truax
3550 Anderson Street
Madison, Wisconsin 53704-2599


-------------------------
http://community.webshots.com/user/valerian114

"There are two kinds of people in the world: Those who claim to be Flash junkies and those who actually are Flash junkies"
  #5 (permalink)  
Old May 3rd, 2004, 01:29 PM
Friend of Wrox
 
Join Date: May 2003
Posts: 202
Thanks: 0
Thanked 1 Time in 1 Post
Default

Yes, HTML is turned off.

No, this is not what's causing the problem.

Bruce Luckcuck
Director, Applications & Support Services
Wiley Publishing, Inc.
  #6 (permalink)  
Old May 3rd, 2004, 05:01 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Bruce,

Were you able to reproduce the problem? If not, do you need more info to reproduce the problem?
If it's too much trouble, don't worry about it. It's not a big issue, but if it's an easy fix, I would be glad to see it gone....
Somehow it looks like that "on edit", too much gets escaped or encoded....

Cheers,

Imar
  #7 (permalink)  
Old May 4th, 2004, 03:23 PM
Friend of Wrox
 
Join Date: May 2003
Posts: 202
Thanks: 0
Thanked 1 Time in 1 Post
Default

Okay.

I think I have the problem fixed. The key to the problem was editing after a spellcheck error.

Let me know if you find any more problems.

Bruce Luckcuck
Director, Applications & Support Services
Wiley Publishing, Inc.
  #8 (permalink)  
Old May 4th, 2004, 03:29 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Yeah, it looks like that was indeed the only situation where it occurred [I do make a lot of typos; I am so happy with the spell-check feature ;) ]

Thanks for fixing this so quickly.

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Citizen erased by Muse (Track 13 from the album: Hullabaloo) What's This?





Similar Threads
Thread Thread Starter Forum Replies Last Post
Bug or no to bug learning C using VS.Net to compil tesh All Other Wrox Books 0 February 14th, 2007 01:06 PM
c# feature request? jtpopol C# 2005 0 September 29th, 2006 02:45 AM
Editing Bug Base cf2006 BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 6 August 19th, 2006 05:56 PM
Feature Request Imar Forum and Wrox.com Feedback 9 September 2nd, 2003 08:24 AM
search feature Adam H-W Classic ASP Databases 1 July 17th, 2003 05:20 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.