Issues with [CODE] in posts, when in conjunction [FONT] and/or [SIZE]

  • We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

gigau

Imperare Orbis Universi
Moderator
218 Badges
May 4, 2005
43.560
8.243
47
www.twitch.tv
  • Imperator: Rome Deluxe Edition
  • Crusader Kings III: Royal Edition
  • Europa Universalis IV: Call to arms event
  • Victoria 3 Sign Up
  • Hearts of Iron IV: Colonel
  • Stellaris: Galaxy Edition
  • 200k Club
  • 500k Club
  • Paradox Order
  • PDXCON 2017 Gold Ticket holder
  • PDXCON 2018 "The Emperor"
  • PDXCon 2019 "King"
  • PDXCon 2017 Awards Winner
Kallocain suggested i posted my message here, for a bit of help :)

************************************
Hi Linda,


To begin with, i hope you are well.


I was not exactely sure where to post this, and then figured it might not be affecting that many users affected, so chose to send you this report by PM.


When i post a message, in a thread, with a
Code:
 entry, given the fact i change the font and the size, i get a strange behaviour with the [code] entry to be split in two, right after the first line. To avoid it, i have to switch to source mode, and end the font and size just before the [code] entry, and restart it right after.[/SIZE][/FONT]
[FONT=times new roman][SIZE=3]
[/SIZE][/FONT]
[FONT=times new roman][SIZE=3]Do you think there is anything that can be done about it ?[/SIZE][/FONT]
[FONT=times new roman][SIZE=3]
[/SIZE][/FONT]
[FONT=times new roman][SIZE=3]Friendly yours,[/SIZE][/FONT]
[FONT=times new roman][SIZE=3]Gilles
************************************[/SIZE][/FONT]
 

Castellon

★Paradox Forum Manager★
Administrator
Paradox Staff
110 Badges
Mar 12, 2002
43.217
1.812
  • Europa Universalis IV
  • 200k Club
  • 500k Club
  • Hearts of Iron II: Beta
  • Victoria 2 Beta
  • Humble Paradox Bundle
  • Paradox Order
Post a sample of the code problem and I will take a look at it.
 

gigau

Imperare Orbis Universi
Moderator
218 Badges
May 4, 2005
43.560
8.243
47
www.twitch.tv
  • Imperator: Rome Deluxe Edition
  • Crusader Kings III: Royal Edition
  • Europa Universalis IV: Call to arms event
  • Victoria 3 Sign Up
  • Hearts of Iron IV: Colonel
  • Stellaris: Galaxy Edition
  • 200k Club
  • 500k Club
  • Paradox Order
  • PDXCON 2017 Gold Ticket holder
  • PDXCON 2018 "The Emperor"
  • PDXCon 2019 "King"
  • PDXCon 2017 Awards Winner
Usually, it's when i try to post something like an event. For example :


Code:
country_event = {
Code:
[SIZE=3][FONT=times new roman]    id = 400[/FONT][/SIZE]
[SIZE=3][FONT=times new roman]
[/FONT][/SIZE]
[SIZE=3][FONT=times new roman]
[/FONT][/SIZE]
[SIZE=3][FONT=times new roman]    trigger = {[/FONT][/SIZE]
[SIZE=3][FONT=times new roman]        has_sphere = yes[/FONT][/SIZE]
[SIZE=3][FONT=times new roman]        NOT = { prestige = 0 }[/FONT][/SIZE]
[SIZE=3][FONT=times new roman]    }[/FONT][/SIZE]
[SIZE=3][FONT=times new roman]
[/FONT][/SIZE]
[SIZE=3][FONT=times new roman]
[/FONT][/SIZE]
[SIZE=3][FONT=times new roman]    mean_time_to_happen = {[/FONT][/SIZE]
[SIZE=3][FONT=times new roman]        months = 360[/FONT][/SIZE]
[SIZE=3][FONT=times new roman]        modifier = {[/FONT][/SIZE]
[SIZE=3][FONT=times new roman]            factor = 0.75[/FONT][/SIZE]
[SIZE=3][FONT=times new roman]            NOT = { prestige = -0.25 }[/FONT][/SIZE]
[SIZE=3][FONT=times new roman]        }[/FONT][/SIZE]
[SIZE=3][FONT=times new roman]        modifier = {[/FONT][/SIZE]
[SIZE=3][FONT=times new roman]            factor = 0.75[/FONT][/SIZE]
[SIZE=3][FONT=times new roman]            NOT = { prestige = -0.5 }[/FONT][/SIZE]
[SIZE=3][FONT=times new roman]        }[/FONT][/SIZE]
[SIZE=3][FONT=times new roman]        modifier = {[/FONT][/SIZE]
[SIZE=3][FONT=times new roman]            factor = 2.0[/FONT][/SIZE]
[SIZE=3][FONT=times new roman]            luck = yes[/FONT][/SIZE]
[SIZE=3][FONT=times new roman]        }[/FONT][/SIZE]
[SIZE=3][FONT=times new roman]    }[/FONT][/SIZE]
[SIZE=3][FONT=times new roman]
[/FONT][/SIZE]
[SIZE=3][FONT=times new roman]
[/FONT][/SIZE]
[SIZE=3][FONT=times new roman]    title = "EVTNAME400"[/FONT][/SIZE]
[SIZE=3][FONT=times new roman]    desc = "EVTDESC400"[/FONT][/SIZE]
[SIZE=3][FONT=times new roman]
[/FONT][/SIZE]
[SIZE=3][FONT=times new roman]
[/FONT][/SIZE]
[SIZE=3][FONT=times new roman]    option = {[/FONT][/SIZE]
[SIZE=3][FONT=times new roman]        name = "EVTOPTA400"[/FONT][/SIZE]
[SIZE=3][FONT=times new roman]        stability = -2[/FONT][/SIZE]
[SIZE=3][FONT=times new roman]        prestige = 0.05[/FONT][/SIZE]
[SIZE=3][FONT=times new roman]        random_sphere = {[/FONT][/SIZE]
[SIZE=3][FONT=times new roman]            relation = { who = THIS value = -30 }[/FONT][/SIZE]
[SIZE=3][FONT=times new roman]        }[/FONT][/SIZE]
[SIZE=3][FONT=times new roman]    }[/FONT][/SIZE]
[SIZE=3][FONT=times new roman]    option = {[/FONT][/SIZE]
[SIZE=3][FONT=times new roman]        name = "EVTOPTB400"[/FONT][/SIZE]
[SIZE=3][FONT=times new roman]        random_sphere = {[/FONT][/SIZE]
[SIZE=3][FONT=times new roman]            remove_from_sphere = THIS[/FONT][/SIZE]
[SIZE=3][FONT=times new roman]        }[/FONT][/SIZE]
[SIZE=3][FONT=times new roman]    }[/FONT][/SIZE]
[SIZE=3][FONT=times new roman]}[/FONT][/SIZE]


If i don't include it in font and size entries, it works fine :





Code:
country_event = {
    id = 400




    trigger = {
        has_sphere = yes
        NOT = { prestige = 0 }
    }




    mean_time_to_happen = {
        months = 360
        modifier = {
            factor = 0.75
            NOT = { prestige = -0.25 }
        }
        modifier = {
            factor = 0.75
            NOT = { prestige = -0.5 }
        }
        modifier = {
            factor = 2.0
            luck = yes
        }
    }




    title = "EVTNAME400"
    desc = "EVTDESC400"




    option = {
        name = "EVTOPTA400"
        stability = -2
        prestige = 0.05
        random_sphere = {
            relation = { who = THIS value = -30 }
        }
    }
    option = {
        name = "EVTOPTB400"
        random_sphere = {
            remove_from_sphere = THIS
        }
    }
}
 

gigau

Imperare Orbis Universi
Moderator
218 Badges
May 4, 2005
43.560
8.243
47
www.twitch.tv
  • Imperator: Rome Deluxe Edition
  • Crusader Kings III: Royal Edition
  • Europa Universalis IV: Call to arms event
  • Victoria 3 Sign Up
  • Hearts of Iron IV: Colonel
  • Stellaris: Galaxy Edition
  • 200k Club
  • 500k Club
  • Paradox Order
  • PDXCON 2017 Gold Ticket holder
  • PDXCON 2018 "The Emperor"
  • PDXCon 2019 "King"
  • PDXCon 2017 Awards Winner
Sorry, forgot to check it back. I didn't turn the code out myself in the first
Code:
 entry, i can promise you.

Basically, as a work around, when willing to change the fonts, i select each portions of the post that are not code, and change the font and size.

The problems seems to have appeared since the implemntation of the WYSIWYG Editor somehow.[/FONT][/SIZE]