Wordpress New Post Issue

Discussion in 'WordPress' started by hemanthjava, Jun 8, 2008.

  1. #1
    Wordpress New Post Issue

    I made a post in

    http://greatfindings.wordpress.com/2008/06/09/java-date-to-caldendar/

    Its a java code and hence to maintain the indentation I used the HTML View of the Wordpress Blog and I pasted the code in between <pre> /pre> tags. For some reason the text on the right hand of each line of my code has got trimmed of. How do I prevent this from happenning

    This is the full code

    
    
    import java.util.*;
    import java.text.*;
    
    public class DateToCalender {
    	public static void main(String[] args) {
    		try {
    			String str_date1 = "11-June-07";
    			DateFormat formatter1;
    			Date date;
    			formatter1 = new SimpleDateFormat("dd-MMM-yy");
    			date = (Date) formatter1.parse(str_date1);
    			Calendar cal = Calendar.getInstance();
    			cal.setTime(date);
    			System.out.println("Today is " + cal);
    		} catch (ParseException e) {
    			System.out.println("Exception :" + e);
    		}
    
    	}
    }
    
    Code (markup):
    Regards,
    Hemanth
     
    hemanthjava, Jun 8, 2008 IP
  2. UseShots

    UseShots Peon

    Messages:
    244
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I can see your code correctly indented
     
    UseShots, Jun 9, 2008 IP
  3. hemanthjava

    hemanthjava Well-Known Member

    Messages:
    1,258
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    160
    #3
    I have attached an image to show the text that is missing...
     
    hemanthjava, Jun 9, 2008 IP
  4. hemanthjava

    hemanthjava Well-Known Member

    Messages:
    1,258
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    160
    #4
    Can anyone help me with it. If you see my post you can see that some text of the java program is missing. How do I get my wordpress post to show the entire program correctly
     
    hemanthjava, Jun 9, 2008 IP