Title: Source code indention [SERIOUS hacking!]
Last modified: August 18, 2016

---

# Source code indention [SERIOUS hacking!]

 *  [rsl](https://wordpress.org/support/users/rsl/)
 * (@rsl)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/source-code-indention-serious-hacking/)
 * I’ve done a few quick passes over the forum to see if anyone else has attempted
   anything remotely like what I’m trying to do. Alas, no. So here’s the dillio:
 * I’m really weird about my source code and have been hacking various functions
   to get their output more to my [albeit particular] liking. However, I’ve run 
   across a couple of instances where I can’t figure out why/how something is happening.
    1. wpautop() seems to not want to separate the closing tag sequence for p blockquote[
       which I can’t represent here due to formatting issues]but has no problem breaking
       up the opening tag sequence [blockquote p]. This looks really odd to me in the
       source code.
    2. The order of preg_replace() calls in wpautop() seems to prevent the indention
       of a line that’s already been broken once. This only shows up at the end of 
       the post/excerpt. I’m no regex expert, so this is probably the hardest problem
       I’m facing.
 * Anyone else got a clue? Thanks in advance!

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [rsl](https://wordpress.org/support/users/rsl/)
 * (@rsl)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/source-code-indention-serious-hacking/#post-174572)
 * Okay. Here’s some irony. The second problem, about breaking the line and not 
   indenting was the easiest to solve. So don’t worry about that one. But the blockquote/
   p dilemma is still in effect.
 *  Thread Starter [rsl](https://wordpress.org/support/users/rsl/)
 * (@rsl)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/source-code-indention-serious-hacking/#post-174575)
 * Nevermind, kittens. I figured everything out. *rolls eyes*
 *  Thread Starter [rsl](https://wordpress.org/support/users/rsl/)
 * (@rsl)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/source-code-indention-serious-hacking/#post-174578)
 * At the risk of annoying **everyone**…
 * Why does
 * `$pee = str_replace('</blockquote></p>', "</p></blockquote>", $pee);`
 * hit the correctly nested
 * `</p></blockquote>`
 * as well?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Source code indention [SERIOUS hacking!]’ is closed to new replies.

 * 3 replies
 * 1 participant
 * Last reply from: [rsl](https://wordpress.org/support/users/rsl/)
 * Last activity: [21 years, 2 months ago](https://wordpress.org/support/topic/source-code-indention-serious-hacking/#post-174578)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
