Skip to content

Dynamic form modification cookbook: Fix inclusion of code #3698

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 20, 2014

Conversation

michaelperrin
Copy link
Contributor

Unfortunately, reStructuredText doesn't support inclusion of code inside a code block, resulting to non-interpreted code (the include keyword is not displayed) as it happens on http://symfony.com/doc/2.3/cookbook/form/dynamic_form_modification.html .

I tried in many ways to avoid this, but didn't find any nice way. I had to duplicate code instead.

The PR includes a few minor fixes on code style as well.

Michaël Perrin added 2 commits March 20, 2014 14:51
Includes in a code block don't work, replace them with the actual code
@weaverryan
Copy link
Member

Hmm, very unfortunate indeed, but nice catch and thanks for looking into this further Michaël. I guess we'll have to be ok with this little bit of duplication - we have a lot of people keeping an eye out for not forgetting to change everything needed :). Thanks!

weaverryan added a commit that referenced this pull request Mar 20, 2014
… (michaelperrin)

This PR was merged into the 2.3 branch.

Discussion
----------

Dynamic form modification cookbook: Fix inclusion of code

Unfortunately, reStructuredText doesn't support inclusion of code inside a code block, resulting to non-interpreted code (the `include` keyword is not displayed) as it happens on http://symfony.com/doc/2.3/cookbook/form/dynamic_form_modification.html .

I tried in many ways to avoid this, but didn't find any nice way. I had to duplicate code instead.

The PR includes a few minor fixes on code style as well.

Commits
-------

1e8b0d4 Small fixes in code style
8093719 Dynamic form modification cookbook: Fix inclusion of code
@weaverryan weaverryan merged commit 1e8b0d4 into symfony:2.3 Mar 20, 2014
@michaelperrin
Copy link
Contributor Author

Yes indeed, I didn't like to have to duplicate code. That will be alright thanks to the active community!

weaverryan added a commit that referenced this pull request Mar 24, 2014
This PR was merged into the 2.3 branch.

Discussion
----------

Fix PSR coding standards error

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | 2.3
| Fixed tickets |

Commits
-------

da2ee60 Fix PSR coding standards error
868de1e minor #3698 Dynamic form modification cookbook: Fix inclusion of code  (michaelperrin)
acf255d feature #3328 [WIP] Travis integration (WouterJ)
5d99d88 [#3697] Backporting 2.3-specific changes
1e8b0d4 Small fixes in code style
8093719 Dynamic form modification cookbook: Fix inclusion of code
37eb137 Update documentation
8dec729 sparse checkouts
b6f693e Added CMF
b1d9e62 Revert changes
6cad008 Updated travis config
c515613 Added .gitignore
85b1b02 Try to supress bundle doc warnings
f3cb8b1 Fixed submodules
71a2ff4 Added needed config files
d312683 Added sphinx files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants