Browse Source

Remove trailing whitespaces from docs

Sullivan SENECHAL 9 years ago
parent
commit
370c1f647e

+ 5 - 5
Resources/doc/cookbook/recipe_image_previews.rst

@@ -52,18 +52,18 @@ we are manipulating form fields we do this from within ``ImageAdmin::configureFo
         {
         {
             // get the current Image instance
             // get the current Image instance
             $image = $this->getSubject();
             $image = $this->getSubject();
-            
+
             // use $fileFieldOptions so we can add other options to the field
             // use $fileFieldOptions so we can add other options to the field
             $fileFieldOptions = array('required' => false);
             $fileFieldOptions = array('required' => false);
             if ($image && ($webPath = $image->getWebPath())) {
             if ($image && ($webPath = $image->getWebPath())) {
                 // get the container so the full path to the image can be set
                 // get the container so the full path to the image can be set
                 $container = $this->getConfigurationPool()->getContainer();
                 $container = $this->getConfigurationPool()->getContainer();
                 $fullPath = $container->get('request')->getBasePath().'/'.$webPath;
                 $fullPath = $container->get('request')->getBasePath().'/'.$webPath;
-            
+
                 // add a 'help' option containing the preview's img tag
                 // add a 'help' option containing the preview's img tag
                 $fileFieldOptions['help'] = '<img src="'.$fullPath.'" class="admin-preview" />';
                 $fileFieldOptions['help'] = '<img src="'.$fullPath.'" class="admin-preview" />';
             }
             }
-            
+
             $formMapper
             $formMapper
                 // ... other fields ...
                 // ... other fields ...
                 ->add('file', 'file', $fileFieldOptions)
                 ->add('file', 'file', $fileFieldOptions)
@@ -113,14 +113,14 @@ Admin class is embedded and use a different method:
             } else {
             } else {
                 $image = $this->getSubject();
                 $image = $this->getSubject();
             }
             }
-            
+
             // use $fileFieldOptions so we can add other options to the field
             // use $fileFieldOptions so we can add other options to the field
             $fileFieldOptions = array('required' => false);
             $fileFieldOptions = array('required' => false);
             if ($image && ($webPath = $image->getWebPath())) {
             if ($image && ($webPath = $image->getWebPath())) {
                 // add a 'help' option containing the preview's img tag
                 // add a 'help' option containing the preview's img tag
                 $fileFieldOptions['help'] = '<img src="'.$webPath.'" class="admin-preview" />';
                 $fileFieldOptions['help'] = '<img src="'.$webPath.'" class="admin-preview" />';
             }
             }
-            
+
             $formMapper
             $formMapper
                 // ... other fields ...
                 // ... other fields ...
                 ->add('file', 'file', $fileFieldOptions)
                 ->add('file', 'file', $fileFieldOptions)

+ 1 - 1
Resources/doc/getting_started/creating_an_admin.rst

@@ -22,7 +22,7 @@ After this, you'll need to tweak the entities a bit:
 .. code-block:: php
 .. code-block:: php
 
 
     // src/AppBundle/Entity/BlogPost.php
     // src/AppBundle/Entity/BlogPost.php
-    
+
     // ...
     // ...
     class BlogPost
     class BlogPost
     {
     {

+ 1 - 1
Resources/doc/getting_started/the_form_view.rst

@@ -39,7 +39,7 @@ The same applies to the service definition:
 .. code-block:: yaml
 .. code-block:: yaml
 
 
     # app/config/services.yml
     # app/config/services.yml
-    
+
     services:
     services:
         # ...
         # ...
         admin.blog_post:
         admin.blog_post:

+ 1 - 1
Resources/doc/reference/getting_started.rst

@@ -277,7 +277,7 @@ your mapped model. You can start creating, listing, editing and deleting instanc
 You probably want to put your own project's name and logo on the top bar.
 You probably want to put your own project's name and logo on the top bar.
 
 
 Put your logo file here ``src/AppBundle/Resources/public/images/fancy_acme_logo.png``
 Put your logo file here ``src/AppBundle/Resources/public/images/fancy_acme_logo.png``
-    
+
 Install your assets:
 Install your assets:
 
 
 .. code-block:: bash
 .. code-block:: bash