Extract vertical alignment configuration from YAML config. Args: yaml_cfg: YAML configuration dictionary Returns: Vertical alignment string ("top", "middle", or "bottom") or None
(yaml_cfg: Dict[str, Any])
| 143 | |
| 144 | |
| 145 | def extract_vertical_alignment(yaml_cfg: Dict[str, Any]) -> Optional[str]: |
| 146 | """ |
| 147 | Extract vertical alignment configuration from YAML config. |
| 148 | |
| 149 | Args: |
| 150 | yaml_cfg: YAML configuration dictionary |
| 151 | |
| 152 | Returns: |
| 153 | Vertical alignment string ("top", "middle", or "bottom") or None |
| 154 | """ |
| 155 | if not isinstance(yaml_cfg, dict): |
| 156 | return None |
| 157 | return yaml_cfg.get('section_title_vertical_align') |
| 158 | |
| 159 | |
| 160 | def extract_section_title_symbol(yaml_cfg: Dict[str, Any]) -> str: |