From 44a9491ce5d567c98c9aa2fd16e3204ce2832282 Mon Sep 17 00:00:00 2001 From: xjm <xjm@65776.no-reply.drupal.org> Date: Thu, 5 Jan 2017 09:41:49 -0600 Subject: [PATCH] Issue #2838205 by 20th, panshulk, Damien Flament: Invalid YAML syntax in code examples in documentation --- core/includes/install.inc | 9 +++++---- core/modules/locale/locale.api.php | 12 ++++++------ 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/core/includes/install.inc b/core/includes/install.inc index e243c184f0bb..49dd4cb57f55 100644 --- a/core/includes/install.inc +++ b/core/includes/install.inc @@ -1044,10 +1044,11 @@ function drupal_check_module($module) { * * Example of .info.yml file: * @code - * name = Minimal - * description = Start fresh, with only a few modules enabled. - * dependencies[] = block - * dependencies[] = dblog + * name: Minimal + * description: Start fresh, with only a few modules enabled. + * dependencies: + * - block + * - dblog * @endcode * * @param $profile diff --git a/core/modules/locale/locale.api.php b/core/modules/locale/locale.api.php index 65b8ff4dc842..56210e54f49a 100644 --- a/core/modules/locale/locale.api.php +++ b/core/modules/locale/locale.api.php @@ -27,8 +27,8 @@ * Example .info.yml file properties for a custom module with a po file located * in the module's folder. * @code - * interface translation project = example_module - * interface translation server pattern = modules/custom/example_module/%project-%version.%language.po + * 'interface translation project': example_module + * 'interface translation server pattern': modules/custom/example_module/%project-%version.%language.po * @endcode * * Streamwrappers can be used in the server pattern definition. The interface @@ -36,10 +36,10 @@ * using the "translations://" streamwrapper. But also other streamwrappers can * be used. * @code - * interface translation server pattern = translations://%project-%version.%language.po + * 'interface translation server pattern': translations://%project-%version.%language.po * @endcode * @code - * interface translation server pattern = public://translations/%project-%version.%language.po + * 'interface translation server pattern': public://translations/%project-%version.%language.po * @endcode * * Multiple custom modules or themes sharing the same po file should have @@ -51,8 +51,8 @@ * Example .info.yml file properties for a custom module with a po file located * on a remote translation server. * @code - * interface translation project = example_module - * interface translation server pattern = http://example.com/files/translations/%core/%project/%project-%version.%language.po + * 'interface translation project': example_module + * 'interface translation server pattern': http://example.com/files/translations/%core/%project/%project-%version.%language.po * @endcode * * Custom themes, features and distributions can implement these .info.yml file -- GitLab